[Matplotlib-users] Memory use of multiple plots on single axes

2013-03-07 Thread Giovanni Plantageneto
Hi everybody, I am running out of memory while doing something like this: F= figure() AX= F.add_subplot(111) MyClass.plot(axes=AX) F.show() MyClass.plot(axes=AX) then does something like this: ... for i in xrange(100): self.MyOtherClass[i].plot(axes=AX) ... This call finally plots some data,

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Giovanni Plantageneto
t possible any more as axes are not lists anymore. Don't take my word for it, though. Thanks for the support. 2012/9/23 Giovanni Plantageneto : > Hi everybody, > sorry, I guess the question is trivial, but I confess my matplotlib > and python ignorance. > > I'm running so

[Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Giovanni Plantageneto
Hi everybody, sorry, I guess the question is trivial, but I confess my matplotlib and python ignorance. I'm running some code written by someone else, and apparently some bits of the code are not compliant with newer versions of matplotlib. So, how can I rewrite the following, which give AttributE

Re: [Matplotlib-users] strange behaviour with sankey diagram (maybe a bug)

2012-05-24 Thread Giovanni
martedì 22 maggio 2012, 18:33, Kevin Davies: > Hi Giovanni, > Do the labels still overlap to the same extent? As far is the Sankey > code is concerned, the "center" is the center of the rectangle from > which the paths diverge. That isn't necessarily the center

Re: [Matplotlib-users] strange behaviour with sankey diagram (maybe a bug)

2012-05-22 Thread Giovanni
lunedì 21 maggio 2012, 21:30, Kevin Davies: > Hi Giovanni, > > Thanks for your report. It looks like in this case the "dip" in the > large, single input caused the input label to be at the center of the > diagram. You might want to try increasing the trunklength &g

[Matplotlib-users] strange behaviour with sankey diagram (maybe a bug)

2012-05-21 Thread Giovanni
Hi all! I'm experiencing a strange behaviour with sankey diagram. As you can see from the attached image, the patch label it's not positioned in the middle of the patch (as it should), but it's plotted over the first label... The code is attached also. Any hints? Thanks, Gio

[Matplotlib-users] Bug (?) in version 1.1.0 (Can't set Attribute)

2012-03-07 Thread Giovanni Plantageneto
Dear all, after upgrading to 1.1.0 on my linux machine (from debian-backports), I get an error (Can't set Attribute) with code looking like this: from pylab import figure F=figure() F.axes=[] Why is this so? Incidentally, going back to the previous available version (0.99.3) solves the problem. C

[Matplotlib-users] mplot3d and ticks

2011-04-16 Thread Giovanni Luca Ciampaglia
Is there a way to control the distance between the axis label and the tick labels with mplot3d.Axes3D? For small figure sizes they overlap and I haven't found a way to fix that. My last resort was to remove the tick labels but that sucks for publication-quality plots. Cheers, -- Giovanni

[Matplotlib-users] Saving to PDF does not use alpha information for LineCollection?

2011-03-30 Thread Giovanni Luca Ciampaglia
1.0? I could not find any mention of it on the changelog ... Cheers, -- Giovanni L. Ciampaglia PhD Student University of Lugano, MACS Lab import matplotlib.pyplot as pp from matplotlib.collections import LineCollection from matplotlib.colors import colorConverter import numpy as np from numpy.ran

Re: [Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Giovanni Luca Ciampaglia
Ah, sorry for the duplicate message! Cheers, G On 15/03/2011 11:30, Giovanni Luca Ciampaglia wrote: > Hi all, > I call savefig by passing to it a file-like object but it appears to not > get the graphics format right: > > f = open('not_a_pdf.pdf', 'w') >

[Matplotlib-users] savefig not deducing file format

2011-03-25 Thread Giovanni Luca Ciampaglia
Hi all, I call savefig by passing to it a file-like object but it appears to not get the graphics format right: f = open('not_a_pdf.pdf', 'w') plot([1,2,3]) savefig(f) but it produces a PNG image. Can anybody confirm this? I am on matplotlib 0.99.3 Cheers, -- Giovan

Re: [Matplotlib-users] savefig not deducing file format

2011-03-15 Thread Giovanni Luca Ciampaglia
vefig(f, format='pdf') > > Mike > > On 03/15/2011 07:11 AM, Giovanni Luca Ciampaglia wrote: >> Hi all, >> I call savefig by passing to it a file-like object but it appears to not >> get the graphics format right: >> >> f = open('not_a_pdf.pdf

[Matplotlib-users] savefig not deducing file format

2011-03-15 Thread Giovanni Luca Ciampaglia
Hi all, I call savefig by passing to it a file-like object but it appears to not get the graphics format right: f = open('not_a_pdf.pdf', 'w') plot([1,2,3]) savefig(f) but it produces a PNG image. Can anybody confirm this? I am on matplotlib 0.99.

[Matplotlib-users] polar filled plot

2009-10-17 Thread Giovanni Bacci
Hi all. I'd like to know if it's possible to obtain a radar plot like this: http://code.google.com/intl/en/apis/chart/types.html#radar (the filled one, with cht=rs) with matplotlib. I'm using matplotlib version 0.98.5 Tha

[Matplotlib-users] matplotlib

2006-11-22 Thread giovanni ruggiero
Hi All, I had problens to use the function quiver with the matplotlib 82-5. Eric advice me to upgrade the mpl. I have tried to upgrade the matplotlib but i have to upgrade almost all my libs. The case is that i can not upgrade these dependences without affect all my configuration wich means tha

[Matplotlib-users] quiver and masked array

2006-11-21 Thread giovanni ruggiero
Hi ALL, I am just starting to leave the matlab to work with matplotlib 82-5 in my ubuntu linux. I have problens to make a vector fild plots using quiver. I have a netcdf file that i extract a u_velocity and v_velocity variables, after i mask the array and try to quiver. i get the following erro