[Matplotlib-users] [matplotlib-users] How to clear a matplotlib graph in PyQt

2012-04-27 Thread Fabien Lafont
Hello everyone, I Have a problem. I have a graph inserted in a PyQt interface and I want to clear it (When I click on a button). I initialise the graph like that: class Graph(FigureCanvas): def __init__(self,parent): self.fig = Figure() self.ax = self.fig.add_subplot(111)

[Matplotlib-users] position of xtick labels

2012-04-27 Thread Nils Wagner
Hi all, I would like to add different xtick labels on the top and bottom of a figure. The number and position of the xticks is the same. How can I do that ? An example would be appreciated. Nils -- Live Security Virtu

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] position of xtick labels

2012-04-27 Thread Francesco Montesano
Dear Nils, I think that I've found what you need (example adapted from http://notes.brooks.nu/2008/03/plotting-on-left-and-right-axis-simulateously-using-matplotlib-and-numpy/ ) import matplotlib.pyplot as plt import numpy as np #data to plot x = np.linspace(0,5,num=100) y = np.sinc(x) fig =

[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] "mpl_toolkits.axisartist.floating_axes.FloatingSubplot" required option

2012-04-27 Thread Benjamin Root
On Fri, Apr 27, 2012 at 10:11 AM, Francesco Montesano < franz.berges...@googlemail.com> wrote: > 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 read

Re: [Matplotlib-users] Matplotlib and Cpp

2012-04-27 Thread Benjamin Root
On Fri, Apr 13, 2012 at 4:24 PM, Ignas Anikevicius wrote: > Dear all, > > I was wondering if it is possible to use matplotlib from C++ directly > and I have found an example on how to do this on StackOverflow: > > > http://stackoverflow.com/questions/2509156/anyone-knows-a-matplotlib-equivalent-in

Re: [Matplotlib-users] Matplotlib and Cpp

2012-04-27 Thread Moore, Eric (NIH/NIDDK) [F]
> -Original Message- > From: Ignas Anikevicius [mailto:anikevic...@gmail.com] > Sent: Friday, April 13, 2012 4:25 PM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Matplotlib and Cpp > > Dear all, > > I was wondering if it is possible to use matplotlib from C++

Re: [Matplotlib-users] Set x axis length of all subplots to same width on screen

2012-04-27 Thread willfurnass
On Thu, Apr 26, 2012 at 12:51 PM, willfurnass wrote: > > I've converted a simple MATLAB script [1] for wavelet decomposition-based > analysis to Python. I now want to create figures similar to [2] that > feature five subplots in one column, with the 1st and 3rd being generated > using 'subplo

Re: [Matplotlib-users] Set x axis length of all subplots to same width on screen

2012-04-27 Thread willfurnass
On Thu, Apr 26, 2012 at 12:51 PM, willfurnass wrote: > > I've converted a simple MATLAB script [1] for wavelet decomposition-based > analysis to Python. I now want to create figures similar to [2] that > feature five subplots in one column, with the 1st and 3rd being generated > using 'subplo

[Matplotlib-users] restrictions on format for posting to matplotlib-users?

2012-04-27 Thread tanim
Hello: Are there any restrictions or best practices for posting problems or issues one has with matplotlib/pyplot? I ask, because one of the data sets that demonstrates unexpected behavior in matplotlib is ~300k in size (I can reduce it if necessary). Tanim Islam -

Re: [Matplotlib-users] restrictions on format for posting to matplotlib-users?

2012-04-27 Thread Benjamin Root
On Friday, April 27, 2012, tanim wrote: > Hello: > > Are there any restrictions or best practices for posting problems or > issues one has with matplotlib/pyplot? I ask, because one of the data sets > that demonstrates unexpected behavior in matplotlib is ~300k in size (I > can reduce it if necess