Eric Firing wrote:
> Mike, Jan,
>
> Any attempt to normalize the angles to a fixed range of length 2 pi
> inside of mpl is sure to wreck valid user code; it merely moves the
> trouble spot to a different angle.
Thanks for catching this. Clearly that was a bone-headed fix on my
part... :(
>
> In
It's slightly hackish, but would it be possible to do an "isinstance"
check in savefig, and if the first arg is a PdfFile, set "format" to
"pdf" automatically, and if "format" is set to something else raise an
exception? A little hackish because it doesn't necessarily scale to
other formats ea
Another (still slightly hacky) way might be to define an optional attribute of
the file object. Something like this:
if hasattr( outputFile, "mplFormat" ):
format = getattr( outputFile, "mplFormat" )
Then have set PdfFile.mplFormat to be "pdf". This is a little less hacky in
that it doesn
Michael Droettboom wrote:
> Eric Firing wrote:
>> Mike, Jan,
>>
>> Any attempt to normalize the angles to a fixed range of length 2 pi
>> inside of mpl is sure to wreck valid user code; it merely moves the
>> trouble spot to a different angle.
> Thanks for catching this. Clearly that was a bone-
Eric Firing wrote:
> Michael Droettboom wrote:
>> Eric Firing wrote:
>>> Mike, Jan,
>>>
>>> Any attempt to normalize the angles to a fixed range of length 2 pi
>>> inside of mpl is sure to wreck valid user code; it merely moves the
>>> trouble spot to a different angle.
>> Thanks for catching thi
Or perhaps the user-visible object doesn't need to be the same PdfFile
that is used internally (which I think should be file-like, since when
we add better image compression, we will want to pass the PdfFile to the
png/jpeg/whatever library to write to). Something like
class PdfFileProxy:
def