Re: [Matplotlib-users] Matplotlib+Qt. Problem with plot resizing

2009-07-20 Thread Alexander Bruy
Hi, Darren, many thanks for your answer. Now all works. Regards, Alexander Bruy -- реклама --- http://FREEhost.com.ua - еще больше места и возможностей. При заказе хостинга - домен бесплатно. --

Re: [Matplotlib-users] Having trouble with aligning subplots

2009-07-20 Thread W. Augustine Dunn III
> I am trying to plot a fig with three subplots.  However when I run my >> script the subplots are all shifted way too high >> (http://img.skitch.com/20090720-fp462u8ww4bq38j29u9bjtr2cx.png) and >> the top subplot is cut off. >> >> I tried doing something l

Re: [Matplotlib-users] Having trouble with aligning subplots

2009-07-20 Thread Jae-Joon Lee
too high > (http://img.skitch.com/20090720-fp462u8ww4bq38j29u9bjtr2cx.png) and > the top subplot is cut off. > > I tried doing something like this from reading another poster's thread > but this did absolutely nothing: > mpl.figure.SubplotParams(left=  (48 / 7

[Matplotlib-users] Having trouble with aligning subplots

2009-07-20 Thread W. Augustine Dunn III
Hello y'all: I am trying to plot a fig with three subplots.  However when I run my script the subplots are all shifted way too high (http://img.skitch.com/20090720-fp462u8ww4bq38j29u9bjtr2cx.png) and the top subplot is cut off. I tried doing something like this from reading another pos

Re: [Matplotlib-users] rotating labels, what is wrong?!

2009-07-20 Thread Jae-Joon Lee
On Mon, Jul 20, 2009 at 4:48 PM, John [H2O] wrote: > > > > Jae-Joon Lee wrote: >> >> get_xmajorticklabels() returns a list of matplotlib's "Text" objects, >> not python strings. >> > > This is what I've now come to understand, but it seems very odd. Why > wouldn't it return the list of strings, or

Re: [Matplotlib-users] rotating labels, what is wrong?!

2009-07-20 Thread John [H2O]
Jae-Joon Lee wrote: > > get_xmajorticklabels() returns a list of matplotlib's "Text" objects, > not python strings. > This is what I've now come to understand, but it seems very odd. Why wouldn't it return the list of strings, or alternatively, how can you get the list of strings? I guess you

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-20 Thread Lukas Hetzenecker
Hm.. I added a resize() after the show(): class Plot_tab(QTabWidget, tab): def __init__(self): super(Plot_tab, self).__init__() self.setupUi(self) self.show() self.resize(self.size().width()+1, self.size().height()+1) self.resize(self.size().width()-1,

Re: [Matplotlib-users] rotating labels, what is wrong?!

2009-07-20 Thread Jae-Joon Lee
get_xmajorticklabels() returns a list of matplotlib's "Text" objects, not python strings. http://matplotlib.sourceforge.net/api/axes_api.html?highlight=get_xmajorticklabels#matplotlib.axes.Axes.get_xmajorticklabels On the other hand, set_xticklabels() takes a list of python strings. http://matpl

Re: [Matplotlib-users] Color Map

2009-07-20 Thread Abhinav Verma
and if you look at the cookbook .. you can see all the available colormaps.. http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps have fun On Mon, Jul 20, 2009 at 8:25 PM, Eric Firing wrote: > Ritayan Mitra wrote: > > Hello > >I am trying to use imshow as below > > > > im = imshow(Z, in

Re: [Matplotlib-users] Color Map

2009-07-20 Thread Eric Firing
Ritayan Mitra wrote: > Hello >I am trying to use imshow as below > > im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, > extent=(-1.,1.,-1.,1.)) > > Trouble is I want to reverse the color gradient or use some colorscheme > which has lighter color at the bottom and darker h

Re: [Matplotlib-users] Color Map

2009-07-20 Thread Chloe Lewis
(almost?) all the colormaps exist in reversed forms, eg, cm.hot_r On Jul 20, 2009, at 10:47 AM, Ritayan Mitra wrote: > Hello > I am trying to use imshow as below > > im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, > extent=(-1.,1.,-1.,1.)) > > Trouble is I want to reverse

[Matplotlib-users] Color Map

2009-07-20 Thread Ritayan Mitra
Hello I am trying to use imshow as below im = imshow(Z, interpolation='spline16', origin='lower', cmap=cm.hot, extent=(-1.,1.,-1.,1.)) Trouble is I want to reverse the color gradient or use some colorscheme which has lighter color at the bottom and darker higher up. What is the easiest soluti

Re: [Matplotlib-users] regarding networkx, matplotlib and pyqt

2009-07-20 Thread Darren Dale
Hi Ala, On Mon, Jul 20, 2009 at 11:44 AM, Ala Al-Shaibani wrote: > Hello everyone. > A users on the networkx mailing list posted this example which is a > modification of the matplotlib-pyqt4 implementation which plots a networkx > graph. > The problem I am facing with it is that two plot windows

[Matplotlib-users] interactive graphing, without ipython

2009-07-20 Thread Blaine Booher
hey everyone, I have an interactive python application that I am using pylab with. I am having a problem where I can only create a graph ONE time. all other calls to plot() and show() cause nothing to happen. I have used ipython -pylab as well, but the problem I am having with ipython is tha

[Matplotlib-users] volume_overlay3

2009-07-20 Thread Christophe Dupre
Hello all, I've been trying to use the volume_overlay functions from matplotlib.finance without luck. Is anyone using it? Below is a simple test program. When I run it, all the volume bars have the same height. Thanks, Christophe #!/usr/bin/env python from pylab import * f

[Matplotlib-users] regarding networkx, matplotlib and pyqt

2009-07-20 Thread Ala Al-Shaibani
Hello everyone. A users on the networkx mailing list posted this example which is a modification of the matplotlib-pyqt4 implementation which plots a networkx graph. The problem I am facing with it is that two plot windows open instead of one, one is empty and the other contains the graph. I

Re: [Matplotlib-users] Matplotlib+Qt. Problem with plot resizing

2009-07-20 Thread Darren Dale
Hi Alexander, 2009/7/20 Alexander Bruy : > Sorry, some troubles with my email service. With attachment now > > > 2009/17/07 Darren Dale wrote: >> >> Please post a short, complete, self-contained script demonstrating the >> problem. >> > > I create a small example, see attachment. There is a simpl

[Matplotlib-users] Error with colorbar in specgram plot.

2009-07-20 Thread davide lasagna
Hello everybody, this is my first post in this list. I'm plotting a spectrogram with Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000) and i want to add a colorbar with colorbar() The problem is that the color scale seems to be wrong with respect to the data in Pxx, i.e. Pxx is

Re: [Matplotlib-users] Set Histogram yrange

2009-07-20 Thread Matthias Michler
Hi Marco, you can set the yrange for the axes after the historgram was plotted, e.g. : hist(arange(30)%3) ylim(0, 15) best regards Matthias On Monday 20 July 2009 11:26:27 marcog wrote: > Hi > > Is it possible to set the yrange of a histogram plot? I have a number of > histograms on separate p

[Matplotlib-users] rotating labels, what is wrong?!

2009-07-20 Thread John [H2O]
I am trying simply to shrink the font size and rotate xaxis labels: fig1 = plt.figure() ax1 = fig1.add_subplot(211) ax2 = fig1.add_subplot(212) ax1.plot_date(x,y,'r') ax1.set_xticklabels(plt.gca().get_xmajorticklabels(), size=6,rotation=30)

[Matplotlib-users] Colorbar not working with specgram

2009-07-20 Thread davide lasagna
Hello everybody, this is my first post in this list. I'm plotting a spectrogram with Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000) and i want to add a colorbar with colorbar() The problem is that the color scale seems to be wrong with respect to the data in Pxx, i.e. Pxx is

[Matplotlib-users] APLpy 0.9.3 Release

2009-07-20 Thread Astronomical Python
We are pleased to announce the release of APLpy 0.9.3, which includes bug fixes, improvements, and new features. APLpy is a python module that makes it easy to interactively produce publication-quality plots of astronomical images in FITS format. More details are available at http://aplpy.sourcefo

[Matplotlib-users] Set Histogram yrange

2009-07-20 Thread marcog
Hi Is it possible to set the yrange of a histogram plot? I have a number of histograms on separate plots that I would like to have the same yrange to make them easier to compare. Thanks Marco -- View this message in context: http://www.nabble.com/Set-Histogram-yrange-tp24566489p24566489.html S