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 jking...@wisc.edu: It sounds like you're wanting a gaussian kernel density estimate (KDE)

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 pivanov...@gmail.com: Francesco Montesano, on 2011-01-21 15:44,  wrote: Dear All, I

[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

[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 =

Re: [Matplotlib-users] Limits with errorbar

2011-02-02 Thread Francesco Montesano
Hi Paul, 2011/2/1 Paul Ivanov pivanov...@gmail.com 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

Re: [Matplotlib-users] hide labels

2011-02-04 Thread Francesco Montesano
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 Fra 2011/2/1 Francesco Montesano franz.berges...@googlemail.com: Dear all, I'm producing a single figure with subplots arrange in a single columns

[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

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,

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 magurl...@gmail.com: 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

Re: [Matplotlib-users] Looking for a good color map that works both for color and bw

2012-01-16 Thread Francesco Montesano
2012/1/16 Michael Cracraft michael.cracr...@gmail.com: I prepared some plots for a conference paper using pcolormesh.  The plots need to work both for color and for a bw 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

Re: [Matplotlib-users] (no subject)

2012-03-27 Thread Francesco Montesano
Il 27 marzo 2012 05:08, Dorm Eight dormei...@yahoo.com 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) [matplotlib.lines.Line2D object at

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Francesco Montesano
From: Francesco Montesano franz.berges...@googlemail.com To: Dorm Eight dormei...@yahoo.com Cc: matplotlib-users@lists.sourceforge.net matplotlib-users@lists.sourceforge.net Sent: Tuesday, March 27, 2012 3:38 PM Subject: Re: [Matplotlib-users] (no subject

Re: [Matplotlib-users] (no subject)

2012-03-30 Thread Francesco Montesano
and try to change 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 franz.berges...@googlemail.com To: Dorm Eight dormei...@yahoo.com; matplotlib-users

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

Re: [Matplotlib-users] position of xtick labels

2012-04-27 Thread Francesco Montesano
(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/12, Francesco Montesano franz.berges...@googlemail.com wrote: Dear Nils, you can try to play with i) ax.axis

[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

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

2012-05-29 Thread Francesco Montesano
Dear Fabien 2012/5/29 Fabien Lafont lafont.fab...@gmail.com: 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)

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

2012-05-29 Thread Francesco Montesano
/doc/numpy/reference/generated/numpy.ndarray.T.html#numpy-ndarray-t Cheers, Francesco 2012/5/29 Francesco Montesano franz.berges...@googlemail.com: Dear Fabien 2012/5/29 Fabien Lafont lafont.fab...@gmail.com: Hello everyone, I have a problem. I have to look at many plots. Usely I do

[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

Re: [Matplotlib-users] emulate transparency in eps

2012-07-16 Thread Francesco Montesano
2012/6/20 Michael Droettboom md...@stsci.edu: 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/2012 10:38 AM, Francesco

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

2012-07-18 Thread Francesco Montesano
2012/7/18 Jonathan Slavin jsla...@cfa.harvard.edu: 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

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

2012-07-19 Thread Francesco Montesano
Hi Brad, 2012/7/19 Alexander Eberspaecher alexander.eberspaec...@ovgu.de: On Wed, 18 Jul 2012 15:50:50 -0700 Brad Malone brad.mal...@gmail.com 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

[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] need an icon for a new featureH

2012-07-19 Thread Francesco Montesano
2012/7/19 Nicolas Rougier nicolas.roug...@inria.fr: 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)

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 pelson@gmail.com: 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 Montesano

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

2012-07-19 Thread Francesco Montesano
2012/7/18 Francesco Montesano franz.berges...@gmail.com: 2012/7/18 Jonathan Slavin jsla...@cfa.harvard.edu: 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

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

2012-07-26 Thread Francesco Montesano
Hi Andreas, 2012/7/26 Andreas Hilboll li...@hilboll.de: 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

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 damon.mcdoug...@gmail.com: On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote: Hi

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

2012-07-27 Thread Francesco Montesano
Hi Andreas, 2012/7/27 Andreas Hilboll li...@hilboll.de: 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

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

2012-07-27 Thread Francesco Montesano
Hi Andreas, 2012/7/27 Andreas Hilboll li...@hilboll.de: Hi Andreas, 2012/7/27 Andreas Hilboll li...@hilboll.de: 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

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

2012-07-30 Thread Francesco Montesano
Hi, 2012/7/30 oc-spam65 oc-spa...@laposte.net: 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] basemap via macports

2012-08-24 Thread Francesco Montesano
2012/8/24 Carlos Grohmann carlos.grohm...@gmail.com: 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

[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

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 efir...@hawaii.edu: On 2012/08/27 5:10 AM, Francesco Montesano wrote: Dear matplotlibers, I encountered a bug (?) in fill_between when using logarithmic scales and the last

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

2012-09-13 Thread Francesco Montesano
Hi Daniel, 2012/9/13 Daniel Welling dantwell...@gmail.com 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

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

2012-10-05 Thread Francesco Montesano
2012/10/5 Gökhan Sever gokhanse...@gmail.com On Fri, Oct 5, 2012 at 1:23 PM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Fri, Oct 5, 2012 at 8:11 PM, Gökhan Sever gokhanse...@gmail.com wrote: Seeing mpl produced plots would be only 1 or 2 clicks away, plus this would This is

[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] default backend on 1.2.0rc1 and master

2012-10-17 Thread Francesco Montesano
2012/10/17 Eric Firing efir...@hawaii.edu 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.x). My set up is to call ipython

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

2012-10-17 Thread Francesco Montesano
2012/10/17 Damon McDougall damon.mcdoug...@gmail.com On Wed, Oct 17, 2012 at 9:12 AM, Francesco Montesano franz.berges...@gmail.com wrote: 2012/10/17 Eric Firing efir...@hawaii.edu On 2012/10/16 9:22 PM, Francesco Montesano wrote: Dear list, I've see a difference between

[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

Re: [Matplotlib-users] Newbie help with subplots

2013-02-01 Thread Francesco Montesano
2013/2/1 Benjamin Root ben.r...@ou.edu On Fri, Feb 1, 2013 at 11:04 AM, Jeff Layton layto...@att.net 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

Re: [Matplotlib-users] real time plotting

2013-03-11 Thread Francesco Montesano
Dear Neal, 2013/3/11 Neal Becker ndbeck...@gmail.com 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()

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

2013-04-07 Thread Francesco Montesano
2013/4/7 Kevin Hunter Kesling kmhun...@ncsu.edu 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

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 kmhun...@ncsu.edu 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 Matplotlib ... is there a way to have one

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

2013-04-19 Thread Francesco Montesano
. Is this backend 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 yet. So the problem appears

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

2013-04-26 Thread Francesco Montesano
Il giorno 26/apr/2013 13:16, Hackstein news.hackst...@gmx.net 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 =

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 v...@vulkor.net 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

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] video without black bands

2014-03-13 Thread Francesco Montesano
Dear Diego, 2014-03-13 14:49 GMT+01:00 diedro diego.aves...@gmail.com: 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

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 mrule7...@gmail.com: Hi all, I haven't been able to find a more official

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 (

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 evanma...@gmail.com: Hi, I have several path objects that I want to join together with