Re: [Matplotlib-users] histogram and a line

2012-03-11 Thread Mic
Thank you for your solutions. However, with my dataset it did not work out with the following code: import numpy as np import matplotlib.pyplot as plt with open('in.small.txt') as f: data = list(int(no.rstrip()) for no in f) mean = np.mean(data) print 'mean', mean std = np.std(data) print 'std',

Re: [Matplotlib-users] Set various parameters of a plot window.

2012-03-11 Thread Ignas Anikevicius
On 11/03/12 14:19, Goyo wrote: > El día 11 de marzo de 2012 11:31, gsal escribió: >> >> I am not quite sure what you are asking, but, can you simply just add your >> own attribute to the window objects? Python is friendly that way, you know? >> It's dynamic. > > There are some dialogs not accesi

[Matplotlib-users] Arrow with a dashed line

2012-03-11 Thread Tony Yu
Is it possible to draw an arrow with a dashed line? I tried using a fancy arrow patch and set the linestyle: #~~~ import matplotlib.pyplot as plt fix, ax = plt.subplots() ax.set_xlim((-1,5)) ax.set_ylim((-5,3)) ax.annotate('simple', xy=(2., -1), xycoords='data', xytext=(100, 60), t

[Matplotlib-users] configure scale plotting

2012-03-11 Thread aa
How to Get symmetric plotting in pylab i tried this code: # -*- coding: utf-8 -*- """ Created on Sat Mar 10 20:33:32 2012 @author: fajar """ from numpy import linspace, meshgrid, array import matplotlib.pyplot as pl import matplotlib.ticker as tc from scipy.integrate import odeint #

Re: [Matplotlib-users] Set various parameters of a plot window.

2012-03-11 Thread Goyo
El día 11 de marzo de 2012 11:31, gsal escribió: > > I am not quite sure what you are asking, but, can you simply just add your > own attribute to the window objects?  Python is friendly that way, you know? > It's dynamic. There are some dialogs not accesible using the mpl api. The save dialogs s

Re: [Matplotlib-users] Matplotlib plugin for Qt Designer

2012-03-11 Thread Goyo
El día 11 de marzo de 2012 12:08, todd rme escribió: > I am interested in making a python GUI that includes an axis.  Qt's > python bindings offers most of the GUI elements I need, and Qt > designer provides a great graphical design tool for making python user > interfaces.  However, I notice that

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-11 Thread Christopher Graves
On Sun, Mar 11, 2012 at 2:06 PM, Mike Kaufman wrote: > On 3/11/12 8:14 AM, cgraves wrote: > >> >> Hi, here is an example script which places minor ticks with 2 per major >> tick >> (minor tick spacing is "fractional" of major tick spacing with relative >> interval of 1/2): >> >> from pylab import

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-11 Thread Mike Kaufman
On 3/11/12 8:14 AM, cgraves wrote: > > Hi, here is an example script which places minor ticks with 2 per major tick > (minor tick spacing is "fractional" of major tick spacing with relative > interval of 1/2): > > from pylab import * > fig=figure() > ax=subplot(111) > ax.autoscale(tight=True) > plo

[Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-11 Thread cgraves
Hi, here is an example script which places minor ticks with 2 per major tick (minor tick spacing is "fractional" of major tick spacing with relative interval of 1/2): from pylab import * fig=figure() ax=subplot(111) ax.autoscale(tight=True) plot([1,2,4],[1,2,3]) x_ticks_maj_spacing = float(abs(a

[Matplotlib-users] Matplotlib plugin for Qt Designer

2012-03-11 Thread todd rme
I am interested in making a python GUI that includes an axis. Qt's python bindings offers most of the GUI elements I need, and Qt designer provides a great graphical design tool for making python user interfaces. However, I notice that matplotlib is not integrated with Qt Designer. Qt Designer a

Re: [Matplotlib-users] Set various parameters of a plot window.

2012-03-11 Thread gsal
I am not quite sure what you are asking, but, can you simply just add your own attribute to the window objects? Python is friendly that way, you know? It's dynamic. -- View this message in context: http://old.nabble.com/Set-various-parameters-of-a-plot-window.-tp33479160p33480317.html Sent fro

Re: [Matplotlib-users] Runtime error with matplotlib in IDLE

2012-03-11 Thread gsal
Don't have a solution; I was just wondering if you have tried something else, like using ipython instead of IDLE. ipython may be better suited for threading and working with pylab, etc. -- View this message in context: http://old.nabble.com/Runtime-error-with-matplotlib-in-IDLE-tp33478456p3348