Re: [Matplotlib-users] passing multiple path arguments to make_compound_path

2014-11-27 Thread Francesco Montesano
Hi, put all them into a list ps = [p1, p2, ..., pn] and then unpack them path.Path.make_compound_path(*ps) Cheers, Fra ps: this is standard python unpacking 2014-11-27 18:12 GMT+01:00 Evan Mason : > Hi, I have several path objects that I want to join together with > make_compound_path. >

Re: [Matplotlib-users] Defaults?

2014-11-07 Thread Francesco Montesano
Hi Sebastian, If you want to set the defaults only once and use them forever, there is the matplotlibrc file (http://matplotlib.org/users/customizing.html) If you want to easily change the defaults according to the context of the plot mpltools by Tony S. Yu can help you ( https://github.com/tonys

Re: [Matplotlib-users] a possible bug report

2014-06-12 Thread Francesco Montesano
Hi Michael, I don't have an answer about your bug. But the official place to report possible bugs is github. https://github.com/matplotlib/matplotlib/issues?state=open Cheers, Fra 2014-06-12 18:07 GMT+02:00 M.Rule : > Hi all, > > I haven't been able to find a more official place to report pot

Re: [Matplotlib-users] video without black bands

2014-03-13 Thread Francesco Montesano
Dear Diego, 2014-03-13 14:49 GMT+01:00 diedro : > Dear B., > thanks a lot for your replay. I get it. > What do you think is the measure for "w" and "h". Is the unit of measure > in pixels?. > yes > What does "fps" stand for? > frames per second Cheers, Francesco > Thanks a lot > > Diego >

Re: [Matplotlib-users] savefig - legend only

2014-01-31 Thread Francesco Montesano
Hi Peter, just get the legend handlers and labels with handles,labels = ax.get_legend_handles_labels() then create an empty plot with axes `axe` and do axe.legend(handles, labels, loc=loc) If you want to hide the axis: axe.xaxis.set_visible(False) axe.yaxis.set_visible(False)

Re: [Matplotlib-users] how do I set the order of layers?

2013-08-24 Thread Francesco Montesano
use the "zorder" keyword. higher zorder stay above lower values. cheers Francesco Il giorno 24/ago/2013 11:27, "vwf" ha scritto: > Hello, > > In the attached example I would like to have the wedges under the > arrows. Can someone tell me how do this? I tried to follow the tutorial > from http://

Re: [Matplotlib-users] multiple overlaid contour plots

2013-06-13 Thread Francesco Montesano
Dear Lado, You should be able to do it simply by calling countourf multiple times changing the alpha value (or setting it to something like 0.5) plt.contourf(..., alpha=0.8, ...) plt.contourf(..., alpha=0.6, ...) plt.contourf(..., alpha=0.4, ...) The problem comes when you want to sa

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Francesco Montesano
Il giorno 26/apr/2013 13:16, "Hackstein" ha scritto: > > Thanks, Ryan, this is (amost) exactly what I was looking for. Now, I get the markers and their colors right, but I still have two problems: > The markers have a black edges, that I cannot get rid of. I've tried > > rect = Rectangle(..., ec=

Re: [Matplotlib-users] Trying to migrate to Python 3.2, Matplotlib 1.2.1

2013-04-19 Thread Francesco Montesano
ackend not available for python3? > > -Sterling > > On Apr 18, 2013, at 8:03PM, John Ladasky wrote: > > > Thanks to both Francesco Montesano and Benjamin Root. I have done some > > reading. And I have made some progress, though I am not quite where I > > want to be ye

Re: [Matplotlib-users] Trying to migrate to Python 3.2, Matplotlib 1.2.1

2013-04-18 Thread Francesco Montesano
Hi John, 2013/4/18 John Ladasky > On 04/18/2013 01:01 AM, Francesco Montesano wrote: > >> does plt.savefig('test.png') work? >> > Yes, it does! Thank you, that was a useful hint. Good, than I would say that is a clear sign that you have a non interactive backe

Re: [Matplotlib-users] Trying to migrate to Python 3.2, Matplotlib 1.2.1

2013-04-18 Thread Francesco Montesano
Hi John, does plt.savefig('test.png') work? If the figure get saved, it can be that you are using a non interactive backend Cheers Fra 2013/4/18 John Ladasky > Hello everyone, > > After not using Matplotlib for over a year, I'm returning to it. > Meanwhile, I have upgraded from Python 2.7 to

Re: [Matplotlib-users] "zig-zag" to represent suppressed 0 on axis?

2013-04-08 Thread Francesco Montesano
Il giorno 08/apr/2013 21:05, "Kevin Hunter Kesling" ha scritto: > > At 4:20pm -0400 Sun, 07 Apr 2013, Francesco Montesano wrote: >> >> Il giorno 07/apr/2013 21:03, Kevin Hunter Kesling ha scritto: >> >>> On the other hand, I'm still such a noob at

Re: [Matplotlib-users] "zig-zag" to represent suppressed 0 on axis?

2013-04-07 Thread Francesco Montesano
Il giorno 07/apr/2013 21:03, "Kevin Hunter Kesling" ha scritto: > > At 2:34pm -0400 Sun, 07 Apr 2013, Francesco Montesano wrote: >> >> 2013/4/7 Kevin Hunter Kesling >> >>> I'm looking for a way to represent on an X-Y graph the fact that an axis >

Re: [Matplotlib-users] "zig-zag" to represent suppressed 0 on axis?

2013-04-07 Thread Francesco Montesano
2013/4/7 Kevin Hunter Kesling > Hullo Matplotlib List, > > I'm looking for a way to represent on an X-Y graph the fact that an axis > does not start from the origin. When drawing by hand, I'll use a little > zig-zag, lightning bolt, or slight space on the axis in question to > represent this fac

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Francesco Montesano
Dear Neal, 2013/3/11 Neal Becker > I want to update a plot in real time. I did some goog search, and saw > various > answers. Trouble is, they aren't working. > > Here's a typical example: > > import matplotlib.pyplot as plt > import numpy as np > fig=plt.figure() > plt.axis([0,1000,0,1]) > >

Re: [Matplotlib-users] Newbie help with subplots

2013-02-01 Thread Francesco Montesano
2013/2/1 Benjamin Root > > > On Fri, Feb 1, 2013 at 11:04 AM, Jeff Layton wrote: > >> Good morning, >> >> I'm been using matplotlib for a while but it's always been very >> simple plots (hey - I'm a simple person). I have a need for some >> "fancier" plots using subplots. >> >> I want to have 3

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Francesco Montesano
Hi Kelson, 2013/1/16 Kelson Zawack > I want to create a matplotlib figure as part of a program I am writing > and therefore would like to create the figure in a fully object oriented > way, ie not in the pyplot state-full way. I understand how to work with > a figure object to create axes objec

[Matplotlib-users] subplots: common x and y labels

2012-11-13 Thread Francesco Montesano
Dear matplolibers, when dealing with multi-axes plot sometimes would be nice to use figure-wide x and y labels. On the web I've found some suggestion on how to do this, but I found no solution valid in the general case and that integrate in the matplotlib ecosystem. The ideal would be to have a "s

Re: [Matplotlib-users] default backend on 1.2.0rc1 and master

2012-10-17 Thread Francesco Montesano
2012/10/17 Damon McDougall > On Wed, Oct 17, 2012 at 9:12 AM, Francesco Montesano > wrote: > > > > > > 2012/10/17 Eric Firing > >> > >> On 2012/10/16 9:22 PM, Francesco Montesano wrote: > >> > Dear list, > >> >

Re: [Matplotlib-users] default backend on 1.2.0rc1 and master

2012-10-17 Thread Francesco Montesano
2012/10/17 Eric Firing > On 2012/10/16 9:22 PM, Francesco Montesano wrote: > > Dear list, > > > > I've see a difference between the default backend between > > > > v1.1.1 (shipped with kubuntu 12.10dev) and v1.2.0.rc1, 1.2.0rc2 and > > master (1.3.

[Matplotlib-users] default backend on 1.2.0rc1 and master

2012-10-17 Thread Francesco Montesano
Dear list, I've see a difference between the default backend between v1.1.1 (shipped with kubuntu 12.10dev) and v1.2.0.rc1, 1.2.0rc2 and master (1.3.x). My set up is to call ipython with pylab and turn on interactive mode. I still haven't copied over my matplotlibrc file from my work computer (

Re: [Matplotlib-users] Corrupted percent signs in labels

2012-10-09 Thread Francesco Montesano
Hi 2012/10/9 Nikolaus Rath > Hello, > > For some reason, my matplotlib isn't able to print percent signs ('%') > properly: > > [1] inspiron:~/tmp# cat mplbug.py > > import matplotlib > import matplotlib.pyplot as plt > import numpy as np > > print matplotlib.__version__ > plt.plot(np.arange(10),

Re: [Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-05 Thread Francesco Montesano
2012/10/5 Gökhan Sever > > > On Fri, Oct 5, 2012 at 1:23 PM, Damon McDougall > wrote: > >> On Fri, Oct 5, 2012 at 8:11 PM, Gökhan Sever >> wrote: >> > Seeing mpl produced plots would be only 1 or 2 clicks away, plus this >> would >> >> This is not true. A lot of articles are unavailable to cert

Re: [Matplotlib-users] sharex with different tick labels

2012-09-13 Thread Francesco Montesano
Hi Daniel, 2012/9/13 Daniel Welling > > Greetings, all. > > I have an issue: I have several axes stacked in a column with a common time > vector on each x-axis. Each plot is a contour, so overplotting is not an > option. In a perfect world, I want the following: > 1) The subplots are tightly

Re: [Matplotlib-users] strange behaviour with fill_between

2012-09-04 Thread Francesco Montesano
Dear Eric, sorry for the delay in replying, and thanking: I forgot the mail after reading it. 2012/8/30 Eric Firing : > On 2012/08/27 5:10 AM, Francesco Montesano wrote: >> Dear matplotlibers, >> >> I encountered a bug (?) in fill_between when using logarithmic scales and

[Matplotlib-users] strange behaviour with fill_between

2012-08-27 Thread Francesco Montesano
Dear matplotlibers, I encountered a bug (?) in fill_between when using logarithmic scales and the last part of y and yerr arrays as set to zero: a diagonal stripe going from the rightmost non zero value to the first value is drawn. It's visible in the right panel of the attached figure, while is n

Re: [Matplotlib-users] basemap via macports

2012-08-24 Thread Francesco Montesano
2012/8/24 Carlos Grohmann : > Hello all, > > I just did a fresh macports install, and installed py27-matplotlib-basemap, > so all dependencies were installed as well. > > After installing python, I did run port-select (or something like it) to > make sure I'm using macports python. > > My problem i

Re: [Matplotlib-users] Axis ticks 'zorder'

2012-07-30 Thread Francesco Montesano
Hi, 2012/7/30 oc-spam65 : > Hello, > > Can the 'zorder' of the ticks be set? This minimal example shows a > hard-coded value of 2.5 > > This may come from file "matplotlib/axes.py", function "draw()". Can it > be adjusted? Shall it be bug-reported? > > #

Re: [Matplotlib-users] Placing a 'title' inside a legend

2012-07-27 Thread Francesco Montesano
Hi Andreas, 2012/7/27 Andreas Hilboll : >> Hi Andreas, >> >> 2012/7/27 Andreas Hilboll : >>> Hi, >>> >>> I'd like to place something like a 'title' inside a legend's box. In my >>> specific case, I have a legend with 5 entries, arranged in 5 columns, so >>> they're horizontally next to each other

Re: [Matplotlib-users] Placing a 'title' inside a legend

2012-07-27 Thread Francesco Montesano
Hi Andreas, 2012/7/27 Andreas Hilboll : > Hi, > > I'd like to place something like a 'title' inside a legend's box. In my > specific case, I have a legend with 5 entries, arranged in 5 columns, so > they're horizontally next to each other in one row. Now what I'd like to > have is inside the legen

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Francesco Montesano
Hi, you should be also able to create the axes as: ax = plt.figure( figsize=(x,y) ).add_subplot(111) with figsize big enough to fit just the legend Cheers Francesco 2012/7/26 Damon McDougall : > On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote: >> > Hi Andreas, >> > >> > 2012/7/2

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Francesco Montesano
Hi Andreas, 2012/7/26 Andreas Hilboll : > Hi, > > I would like to create a figure which only contains a legend, and no axes > at all. I would like to manually assign the colors. I found this here: > >http://stackoverflow.com/a/3302666 > > but from there on, I'd like to remove the axes, and put

Re: [Matplotlib-users] mimic alpha (channel) v0.1

2012-07-19 Thread Francesco Montesano
2012/7/18 Francesco Montesano : > 2012/7/18 Jonathan Slavin : >> Ben, >> >> Yes, you're right, but I doubt any solution that involves mimicking an >> alpha channel will work for one case that I've been using. That is, >> making the legend box partially t

Re: [Matplotlib-users] gallery link broken/not working

2012-07-19 Thread Francesco Montesano
done: https://github.com/matplotlib/matplotlib/issues/1024 Fra 2012/7/19 Phil Elson : > I can confirm the bad link. > Would you mind opening a new issue on github for this? > > github.com/matplotlib/matplotlib/issues/new > > Thanks, > > On 19 July 2012 10:15, Francesco

Re: [Matplotlib-users] need an icon for a new featureH

2012-07-19 Thread Francesco Montesano
2012/7/19 Nicolas Rougier : > > > What size/format do you need and would that be an option to transform/use > Tango icons ? > > http://tango.freedesktop.org/ > http://commons.wikimedia.org/wiki/Tango_icons > > > Tango (for fullscreen but might suit tight-layout) > > > > > > > > > > > > > > > > > >

[Matplotlib-users] gallery link broken/not working

2012-07-19 Thread Francesco Montesano
Hi, roaming through the gallery I've found that in http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_01.html http://matplotlib.sourceforge.net/examples/axes_grid/demo_axes_divider_01.html

Re: [Matplotlib-users] Combining 4 plots into one figure

2012-07-19 Thread Francesco Montesano
Hi Brad, 2012/7/19 Alexander Eberspaecher : > On Wed, 18 Jul 2012 15:50:50 -0700 > Brad Malone wrote: > >> Hi, I have a collection of 4 plots that I spent some time in >> constructing. They themselves include modifications of the axes >> labels, have rotated subplots next to them, etc. I need to

Re: [Matplotlib-users] mimic alpha (channel) v0.1

2012-07-18 Thread Francesco Montesano
2012/7/18 Jonathan Slavin : > Ben, > > Yes, you're right, but I doubt any solution that involves mimicking an > alpha channel will work for one case that I've been using. That is, > making the legend box partially transparent. I use that to allow the > box to fit in the plot without blocking the

Re: [Matplotlib-users] emulate transparency in eps

2012-07-16 Thread Francesco Montesano
2012/6/20 Michael Droettboom : > The postscript output of the Cairo backend supports transparency > emulation, though it hasn't been tested in some time. Eric's suggestion > (to output PDF and then convert to EPS) is also a reasonable one. > > Mike > > On 06/20/201

[Matplotlib-users] emulate transparency in eps

2012-06-20 Thread Francesco Montesano
Dear list, it might be that this is not the best place to ask, but I guess that there are enough people with experience with colors. I think plots with nice colors and shaded areas are very nice, but for my publication I have to use eps files, that do not support transparency. The script below pr

Re: [Matplotlib-users] [matplotlib-users] definition to show quikly a plot

2012-05-29 Thread Francesco Montesano
reference/generated/numpy.ndarray.T.html#numpy-ndarray-t Cheers, Francesco > > > > 2012/5/29 Francesco Montesano : >> Dear Fabien >> >> 2012/5/29 Fabien Lafont : >>> Hello everyone, >>> >>> I have a problem. I have to look at many plo

Re: [Matplotlib-users] [matplotlib-users] definition to show quikly a plot

2012-05-29 Thread Francesco Montesano
Dear Fabien 2012/5/29 Fabien Lafont : > Hello everyone, > > I have a problem. I have to look at many plots. Usely I do it like that: > > from pylab import* > > X1 = genfromtxt("Myfile.dat", usecols =(0)) > Y1 = genfromtxt("Myfile.dat", usecols =(1)) > plot(X1,Y1, label ="My curve") > > show() > >

[Matplotlib-users] "mpl_toolkits.axisartist.floating_axes.FloatingSubplot" required option

2012-04-27 Thread Francesco Montesano
Dear matplotlibers, I know almost nothing about mpl_toolkits (matplolib.__version__ = 1.1.0). >From the help of "mpl_toolkits.axisartist.floating_axes.FloatingSubplot", the init function reads __init__(self, fig, *args, **kwargs) In the example here (http://matplotlib.sourceforge.net/examples/axe

Re: [Matplotlib-users] position of xtick labels

2012-04-27 Thread Francesco Montesano
np.arange(nfreq)+1,rotation=90) > ax.set_xlim(0.,nfreq) > ax.set_ylim(0.,102.) > plt.subplots_adjust(left=0.075, right=0.85, top=0.9, bottom=0.05) > plt.show() > > How can I add xtick labels on the top of my figure ? > > Cheers, >               Nils > > > On 4/27

Re: [Matplotlib-users] position of xtick labels

2012-04-27 Thread Francesco Montesano
Dear Nils, you can try to play with i) ax.axis["right", "top", "bottom", "left"] and their methods (see setup_axis3 here http://matplotlib.sourceforge.net/examples/axes_grid/demo_floating_axes.html for an example) ii) twinx and twiny axes (example http://matplotlib.sourceforge.net/examples/api/two

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Francesco Montesano
ge the backend. I think that I cannot help much more here. Does anyone else has an idea if there might be any other problem? Cheers, Francesco > > ____ > From: Francesco Montesano > To: Dorm Eight ; matplotlib-users@lists.sourceforge.net > Sent: Friday, M

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Francesco Montesano
> > From: Francesco Montesano > To: Dorm Eight > Cc: "matplotlib-users@lists.sourceforge.net" > > Sent: Tuesday, March 27, 2012 3:38 PM > Subject: Re: [Matplotlib-users] (no subject) > > Il 27 marzo 2012 05:08, Dor

Re: [Matplotlib-users] (no subject)

2012-03-27 Thread Francesco Montesano
Il 27 marzo 2012 05:08, Dorm Eight ha scritto: > hi, everybody! > > when I run my script, why there is no figure show up? I downloaded the demos > from matplotlib gallery and it didn't work either. x=np.arange(100) y=x**2+3*x-1 pl.plot(x,y) > [] pl.show() > there is n

matplotlib-users@lists.sourceforge.net

2012-01-16 Thread Francesco Montesano
2012/1/16 Michael Cracraft : > I prepared some plots for a conference paper using pcolormesh.  The plots > need to work both for color and for a b&w print copy.  Does anyone have a > goto color map for that sort of occassion?  I was using YlGrBu, but I'm just > not happy with it. > > Thanks, > Mich

Re: [Matplotlib-users] legend border, frameon keyword

2011-11-11 Thread Francesco Montesano
Hi, I usually do like this l = ax.legend( (rects1[0], rects2[0]), ('set1', 'set2')) l.draw_frame(False) Cheers, Francesco 2011/11/9 magurling : > > I want a legend without the black border. I've tried a few things that have > been suggested on this forum and elsewhere to no avail. According to

Re: [Matplotlib-users] fill with a semilogy axis?

2011-05-06 Thread Francesco Montesano
Hi Michael, I use fill_between() and log axis without problems in the following way (it's by memory, I hope the sintax is correct) fig = plt.figure() spl = fig.add_subplot(111) spl.fill_between(x,y1,y2) spl.set_yscale("log") plt.show() Cheers, Fra Il giorno 06/mag/2011, alle ore 01.34, Ben

[Matplotlib-users] multiline legend tags

2011-03-17 Thread Francesco Montesano
Dear all, I have a rather complex code that takes a list of file names and of legend tags from command line and compute contour plots ./contour_plots.py [options] filename1 ... filename2 tag1 ... tagn The codes make filled contours at required levels, then line contours. >From the latter I extra

Re: [Matplotlib-users] hide labels

2011-02-04 Thread Francesco Montesano
invisible, nothing changes, and if I have other plots under this the plot becomes ugly/unreadable. I hope to have been clearer than in my previous mail. Any suggestion on how to fix or find a workaround in order to get the same number of tick labels as the ones actually plotted. Thank in advance F

Re: [Matplotlib-users] Limits with errorbar

2011-02-02 Thread Francesco Montesano
Hi Paul, 2011/2/1 Paul Ivanov > I'm not sure what you're hoping to see, but you should either use > xerr with xuplims, or yerr with uplims. > Thank you for the reply. As usually I checked everything except the correct one. By the way, if one uses (by error) yerr and xuplims/xlolims or xerr and

[Matplotlib-users] hide labels

2011-02-01 Thread Francesco Montesano
Dear all, I'm producing a single figure with subplots arrange in a single columns. They all share the same x range but the y variable change from subplot to subplot In order have a nicer figure I hide the first and the last y label of each subplot in the following way > ytl = subpl.get_ymajortic

[Matplotlib-users] Limits with errorbar

2011-02-01 Thread Francesco Montesano
Dear all, I am trying to make a plot with errorbars and upperlimits. I've found the following pylab example http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_limits.htmland it works fine both on a Mac OSX10.6 with python 2.6.1 and on Kubuntu 10.04 with python 2.6.5. I've tried the

Re: [Matplotlib-users] Legend for contour plots

2011-01-22 Thread Francesco Montesano
Dear Paul, Thank you, it does exacly what I want to do. I searched a bit into the "contour" instance, but I was biased since I was looking for something like "get_line". cheers Francesco 2011/1/21 Paul Ivanov : > Francesco Montesano, on 2011-01-21 15:44,  wrote: >&g

Re: [Matplotlib-users] Smooth contourplots

2010-09-07 Thread Francesco Montesano
Dear Joe, finally I had time to come back to my python scritp for the contour plots. You're code works very nicelly and does exactly what I need. Thank you for the help Francesco 2010/7/26 Joe Kington : > It sounds like you're wanting a gaussian kernel density estimate (KDE) (not > the desktop!