Re: [Matplotlib-users] Using legend with a stem plot

2011-01-05 Thread Benjamin Root
On Fri, Dec 17, 2010 at 4:03 PM, Alejandro Weinstein < alejandro.weinst...@gmail.com> wrote: > Hi: > > I want to add a legend to a stem plot with two plots. The basic code is: > > ### > from pylab import * > > x = [1,2,3,4,5] > y1 = [1, 2, 3, 4, 5] > y2 = [5, 4, 3, 2, 1] >

Re: [Matplotlib-users] Legend in a multibars chart

2011-01-05 Thread Benjamin Root
On Wed, Jan 5, 2011 at 7:19 AM, Alain Pascal Frances wrote: > Hi, > > I'm plotting two subplots using bar charts, the first one contains one > dataset (one bar for each abscissa value), the second 3 dataset (3 bars for > each abscissa value, each one with its own color). The legend of the > multib

Re: [Matplotlib-users] mplot3d: disable z-sorting?

2011-01-05 Thread Benjamin Root
On Wed, Jan 5, 2011 at 6:15 PM, Sebastian Voigt wrote: > I've been running into the well known rendering problems with mplot3d's > bar3d function. After two days of trying to get acceptable results > without success: Is it possible to simply disable z-sorting (whoops)? > > I want to generate stat

[Matplotlib-users] mplot3d: disable z-sorting?

2011-01-05 Thread Sebastian Voigt
I've been running into the well known rendering problems with mplot3d's bar3d function. After two days of trying to get acceptable results without success: Is it possible to simply disable z-sorting (whoops)? I want to generate static plots from experimental data, all using the same perspective

Re: [Matplotlib-users] defining a custom RGB colormap

2011-01-05 Thread Paul Ivanov
Michael Rawlins, on 2011-01-05 14:42, wrote: > Thanks for the detailed tutorial. I'm getting errors when I > attempt to use plt.subplots(1,1) and the newcm assignment. > > Traceback (most recent call last): > File "colorbar_Mytest2.py", line 17, in > f, ax = plt.subplots(1,1) > AttributeEr

Re: [Matplotlib-users] defining a custom RGB colormap

2011-01-05 Thread Michael Rawlins
Paul, Thanks for the detailed tutorial. I'm getting errors when I attempt to use plt.subplots(1,1) and the newcm assignment. Traceback (most recent call last): File "colorbar_Mytest2.py", line 17, in f, ax = plt.subplots(1,1) AttributeError: 'module' object has no attribute 'subplots'

Re: [Matplotlib-users] semilogy

2011-01-05 Thread Paul Ivanov
Neal Becker, on 2011-01-05 08:19, wrote: > I want to plot semilogy with major and minor grid. I tried: > > plt.grid(which='both') > > But 2 problems: > > 1) For semilogy, most of my viewers will expect to see 10 minor > ticks/major tick. I got 5. How do I change it? Hi Neal, odd, it works

Re: [Matplotlib-users] defining a custom RGB colormap

2011-01-05 Thread Paul Ivanov
Michael Rawlins, on 2011-01-05 08:44, wrote: > How does one define a range of colors for a custom user-defined > colormap? I'm fairly new to matplotlib and have been using > standard colormaps. Below is a sample program that makes a > color bar based on the hot colormap. I'd like to have a > co

[Matplotlib-users] arrow and function key events in matplotlib

2011-01-05 Thread Bob Lewis
I'm trying to figure out how to capture arrow and function key events in matplotlib running with PyQt4. I can get ASCII characters, but not things like F1 or left arrow. This is a repeat request, but I'm not sure my earlier posting (which got no response) made it to the list, as I was not a subsc

Re: [Matplotlib-users] How draw network with matplotlib

2011-01-05 Thread Benjamin Root
On Wed, Jan 5, 2011 at 9:50 AM, Juan David M.C. wrote: > Hello, anyone know the best way to draw networks with matplotlib, such > as gas networks. > > How plotted lines link?, straight lines or otherwise to minimize the > junction of lines. > > thanks and regards, > > Juan, There aren't a lot of

[Matplotlib-users] defining a custom RGB colormap

2011-01-05 Thread Michael Rawlins
How does one define a range of colors for a custom user-defined colormap? I'm fairly new to matplotlib and have been using standard colormaps. Below is a sample program that makes a color bar based on the hot colormap. I'd like to have a colormap like hot, but that starts at, say, orange (ne

Re: [Matplotlib-users] latest matplotlib requires python >= 2.5

2011-01-05 Thread John Hunter
On Wed, Jan 5, 2011 at 9:51 AM, Benjamin Root wrote: > > > On Tue, Jan 4, 2011 at 5:49 AM, Marcin Dulak wrote: > >> Hi, >> >> the formlayout part in the latest matplotlib requires python >= 2.5 >> See >> >> http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19219.html >> That c

Re: [Matplotlib-users] latest matplotlib requires python >= 2.5

2011-01-05 Thread Benjamin Root
On Tue, Jan 4, 2011 at 5:49 AM, Marcin Dulak wrote: > Hi, > > the formlayout part in the latest matplotlib requires python >= 2.5 > See > > http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19219.html > That causes troubles on very popular in RHEL 5 based distributions - > the

Re: [Matplotlib-users] How draw network with matplotlib

2011-01-05 Thread Juan David M.C.
Hello, anyone know the best way to draw networks with matplotlib, such as gas networks. How plotted lines link?, straight lines or otherwise to minimize the junction of lines. thanks and regards, -- Learn how Oracle Real

[Matplotlib-users] How draw network with matplotlib

2011-01-05 Thread Juan David M.C.
Hello, anyone know the best way to draw networks with matplotlib, such as gas networks. How plotted lines link?, straight lines or otherwise to minimize the junction of lines. thanks and regards, -- Learn how Oracle Real

[Matplotlib-users] latest matplotlib requires python >= 2.5

2011-01-05 Thread Marcin Dulak
Hi, the formlayout part in the latest matplotlib requires python >= 2.5 See http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19219.html That causes troubles on very popular in RHEL 5 based distributions - they use an old python 2.4 still. Can this be fixed for the next relea

[Matplotlib-users] Legend in a multibars chart

2011-01-05 Thread Alain Pascal Frances
Hi, I'm plotting two subplots using bar charts, the first one contains one dataset (one bar for each abscissa value), the second 3 dataset (3 bars for each abscissa value, each one with its own color). The legend of the multibars chart is not correct, it shows the color of the first dataset for

[Matplotlib-users] semilogy

2011-01-05 Thread Neal Becker
I want to plot semilogy with major and minor grid. I tried: plt.grid(which='both') But 2 problems: 1) For semilogy, most of my viewers will expect to see 10 minor ticks/major tick. I got 5. How do I change it? 2) I'd like the major ticks to be solid lines, and minor ticks to be dashed. I

[Matplotlib-users] mplwidget 3D

2011-01-05 Thread Arthur Dijkstra
LS, How can it be done to create a 3D axis on an QtTabwidget with the mplwidget. I can make a 2d plot but not 3d. How can this be done ? Thanks, Arthur -- Learn how Oracle Real Application Clusters (RAC) One Node allow