Re: [Matplotlib-users] Legend frame edgecolor and linewidth

2015-11-18 Thread Daniele Nicolodi
. This could certainly use > some improvements, partly in allowing a dictionary of property values to > be passed in `plt.legend()` (there is already a dictionary of font > properties), but also to have some rcParams that could be made > available, too. Such improvements are always welcome! &g

[Matplotlib-users] TkAfgg window handling bug on MaxOSX

2015-11-18 Thread Daniele Nicolodi
Hello, I use matplotlib 1.5.0 via macports on MacOSX 10.10.5 and I'm testing the TkAgg backend (the MacOSX backend has some annoying bugs). I notice the following strange behavior in a IPython 4.0.0 console: 1. run the following lines: In [1]: %matplotlib tk In [2]: import matplotlib.pyplot as

[Matplotlib-users] Legend frame edgecolor and linewidth

2015-11-13 Thread Daniele Nicolodi
Hello, there is a way to control the edgecolor and the linewidth of the frame drawn around the legend? I set the axes linewidth to 0.5 but the legend frame linewidth is set to 1.0 and it does not look nice. Also, most of the time I don't want the frame edge to be drawn at all. Always doing: l

Re: [Matplotlib-users] TypeError: can't multiply sequence by non-int of type 'float'

2015-09-28 Thread Daniele Nicolodi
On 28/09/15 22:25, Jerzy Karczmarczuk wrote: > > Le 28/09/2015 21:03, Benjamin Root a écrit : >> Where does he multiply a list by a float? The traceback shows the >> multiplication happening much further down in the draw stack. > > Look, Benjamin Root, I don't know, and I will not "investigate"

Re: [Matplotlib-users] Inconsistent font handling in axis labels

2014-09-23 Thread Daniele Nicolodi
On 23/09/14 13:51, Daniele Nicolodi wrote: > The effect is that the plot title, legend, and tick mark labels are > correctly rendered in Helvetica Light, while axis labels are rendered in > Helvetica Regular. > > I'm I missing something or there is a problem in matplotlib fo

[Matplotlib-users] Inconsistent font handling in axis labels

2014-09-23 Thread Daniele Nicolodi
Hello, I would like to create PDFs of plot using the Helvetica font in the Light variant. In my old Mac OS X installation I somehow achieved this, I don't remember exactly how, but probably with an ugly hack that involved making matplotlib aware only of this variant of the font. In my new Mac OS X

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-02 Thread Daniele Nicolodi
On 01/05/2014 19:50, nertskull wrote: > Is there anyway to have reasonable pdf sizes as well as this improved > performance for keeping them in vector format? As others tried to explain to you, plotting that many points in a plot does not make any sense. The only thing that makes sense is to down-

Re: [Matplotlib-users] pick event for images

2013-11-02 Thread Daniele Nicolodi
On 02/11/2013 19:07, Joe Kington wrote: > Hi Daniele, > > First off, the FSF uses and endorses a number of non GPL licenses. They > reccomend the Apache license over MIT-style licenses for permissive > cases due to patent issues, but they don't require it. In fact, even > the GNU project has sev

Re: [Matplotlib-users] pick event for images

2013-11-02 Thread Daniele Nicolodi
Hello Joe, I accidentally had a look at the source file you linked to and I found the copyright and license terms quite strange. Are you really transferring copyright for your work to the Free Software Foundation which is releasing it under the MIT license? I find very strange that the FSF is us

Re: [Matplotlib-users] Setting the tick label font size

2013-10-30 Thread Daniele Nicolodi
On 29/10/2013 21:39, Ryan Nelson wrote: > Daniele, > > I agree this is perhaps a little overly complicated. (However, once you > figure it out, it does give you a ton of flexibility.) The main point is not that it is overly complicated, it is that is is severely under documented... > I played ar

Re: [Matplotlib-users] Setting the tick label font size

2013-10-29 Thread Daniele Nicolodi
On 29/10/2013 03:11, Ryan Nelson wrote: > Daniele, > > I noticed the same problem with the Qt backend. However, I was looking > at the documentation on the AxesGrid webpage here: > http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html > And I see the following warning: > > axes_grid an

Re: [Matplotlib-users] Setting the tick label font size

2013-10-28 Thread Daniele Nicolodi
On 29/10/2013 00:17, Sterling Smith wrote: > While your example tries to be self contained, which is great!, there is no > difference between these two conditions... > >> if BUG: >>ax1 = host_subplot(111, axes_class=Axes) >> else: >>ax1 = host_subplot(111, axes_class=Axes) Ops, obvious

Re: [Matplotlib-users] Setting the tick label font size

2013-10-28 Thread Daniele Nicolodi
On 28/10/2013 23:30, Oliver wrote: > Hi Daniele, > > not sure, but it seems to work for me. Did you do a plt.draw() or > plt.show() to reflect the changes? Hello, it investigated this a bit further and the problem presents itself only when I use `mpl_toolkits.axisartist.Axes`. Here is a minimum

[Matplotlib-users] Setting the tick label font size

2013-10-28 Thread Daniele Nicolodi
Hello, I'm trying to change the font size for the tick labels. I've tried both setting it explicitly when creating the labels: ax2.set_xticklabel(['%d' % x for x in arange(10)], fontsize=10) or after: for label in ax2.get_xticklabels(): label.set_fontsize(8) but the rendering is unaf

Re: [Matplotlib-users] Matplotlib eating memory

2013-10-14 Thread Daniele Nicolodi
On 10/10/2013 15:05, Martin MOKREJŠ wrote: > Hi, > rendering some of my charts takes almost 50GB of RAM. I believe below is a > stracktrace > of one such situation when it already took 15GB. Would somebody comments on > what is > matplotlib doing at the very moment? Why the recursion? > > Th

[Matplotlib-users] Text positioning anchored to its bounding box

2013-01-16 Thread Daniele Nicolodi
Hello, I use matplotlib.pyplot.text() to annotate my plots. When annotating reference lines on simple x,y plots I find it quite annoying to have to manually compute an offset in data coordinates to have some spacing between the line I'm labeling and the label itself. With the bbox={'pad': paddin

Re: [Matplotlib-users] pdf file output name too restrictive?

2012-03-12 Thread Daniele Nicolodi
On 12/03/12 13:40, Neal Becker wrote: > Using this code: > > self.pdf = PdfPages('%s.%s.pdf' % (name, str(date.today( > > Trying to output a pdf with the name > > "results.abs_aci=[10.0, nan, 10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf" > > produces this error > > IOError: [Errno 2] N

[Matplotlib-users] colormap plot

2010-11-05 Thread Daniele Nicolodi
Hello, I have a really dummy question. I would like to plot an x, y, z table so that each region of the plot area defined by the coordinates (x, y) corresponds a color given by the value of z. I suppose this is a kind of basic functionality, but I'm unable to find the right function into matplotli

Re: [Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-10-03 Thread Daniele Nicolodi
On 18/09/10 02:57, Joey Richards wrote: > When I plot with the MacOSX backend using a serif font, the negative > signs on the axis labels show up as the "missing glyph" open squares > rather than minus signs. Hello, I have the same problem on MacOsX 10.4 and matplotlib 1.0, but also with the defa

Re: [Matplotlib-users] Disappearing time series spikes

2010-06-04 Thread Daniele Nicolodi
On 04/06/10 20:08, Michael Droettboom wrote: > Set rc.Params['path.simplify'] to False, or upgrade to 0.99.3. Setting path.simplify = False solved my issue. Has been the issue solved in another way on 0.99.3 or path.simplify = False is simply the new default? Thanks. Cheers, -- Daniele

[Matplotlib-users] Disappearing time series spikes

2010-06-04 Thread Daniele Nicolodi
Hello. I'm observing a quite annoying behavior of matplotlib generated plots. I plot signal time series with continuous lines. When in those time series I have single points laying far from the median, those are not represented on the plot. I think this must be due to the anti aliasing algorithm,