[Matplotlib-users] Problem in afm.py with 0.98.3

2008-10-04 Thread Berthold Höllmann
I have a problem with every matplot version since 0.90.1. One of my installed fonts causes afm.py to bail out. I am sure I reported this problem before without reaction. After I installed python 1.6 and a recent numpy 0.90.1 does not work anymore so I tried the latest again, and get the afm error

[Matplotlib-users] Font problem on import of pylab

2008-01-18 Thread Berthold Höllmann
Hello, With matplotlib-0.91.2 as well as with the latest SVN version I get [EMAIL PROTECTED]:~> python -ic "from matplotlib import pylab" Found an unknown keyword in AFM header (was MetricsSets) Found an unknown keyword in AFM header (was IsBaseFont) Found an unknown keyword in AFM header (was Is

[Matplotlib-users] axis.get_child_artists() marked depreciated, what to use else.

2007-02-27 Thread Berthold Höllmann
The online documentation on marks the method 'get_child_artists' deprecated. What else can I use instead? Thanks Berthold -- __ Address: G / \ L Germanischer Lloyd phone: +49-40-36149-

Re: [Matplotlib-users] Fwd: Problem with adding an artist from one axes instance to another

2007-02-08 Thread Berthold Höllmann
"John Hunter" <[EMAIL PROTECTED]> writes: >> But this fails to plot the first rectange in the resulting plot. The >> second, red rectangle is painted correctly in the resulting plot, but >> the first one is totaly missing in the plot, leaving only a line in >> the plot. Is there some kind of inter

[Matplotlib-users] Problem with adding an artist from one axes instance to another

2007-02-07 Thread Berthold Höllmann
I try to take artists from one subplot instance and add them to another: - from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.patches import Patch, Rectangle from matplotlib.lines import Line2D f

[Matplotlib-users] How to get a deepcopy of a subplot?

2007-02-06 Thread Berthold Höllmann
Hello, I try to generate dozens of plots where there is some static content for all plots and some content that changes. I'm porting the application from biggles to matplotlib. With biggles I could simply deepcopy the basis plot and add the content, but trying to deepcopy as my subplot instance I

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Berthold Höllmann
"John Hunter" <[EMAIL PROTECTED]> writes: > On 2/5/07, Berthold Höllmann wrote: > >> I get a file 'test.eps'. Using matplotlib 0.87.7 the PS bounding box >> of the generated plot is far to wide. Is this a problem with my script >> or a Problem o

[Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Berthold Höllmann
With the script from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.patches import Rectangle fig = Figure() canvas = FigureCanvas(fig) ax = fig.add_subplot(111) ax.plot([.5,.7],[1.5, 2.5]) ax.add_artist(Rectangle((.

[Matplotlib-users] Missleading Warning when importing matplotlib

2007-02-02 Thread Berthold Höllmann
Importing matplotlib I get the warning message /usr/local/gltools/python/Python-2.5/linux/lib/python2.5/site-packages/matplotlib-0.87.7-py2.5-linux-i686.egg/matplotlib/__init__.py:155: UserWarning: Module matplotlib was already imported from /usr/local/gltools/python/Python-2.5/linux/lib/python2

Re: [Matplotlib-users] Problem with set_xlim

2007-01-05 Thread Berthold Höllmann
Tommy Grav <[EMAIL PROTECTED]> writes: > You have to use set_ylim((0,2)) to set the y limits. Is there a function/method to calculate apropriate ?lim values from a given Dataset? Regards Berthold -- __ Address: G / \ L Germanischer Lloyd p

[Matplotlib-users] Problem with set_xlim

2007-01-04 Thread Berthold Höllmann
Considering the following script I would Expect a resulting y range of (1, 2) but I get (1, 3). Is this a bug or a feature. I'm using python 2.5, matplotlib 0.87.7. from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure fig = Figure() canva