[Matplotlib-users] How to calculate relative positions between objects

2010-01-31 Thread Renato Alves
Hi everyone I've been going around matplotlib objects trying to find a way to pre-calculate positions depending on input. I'm trying to create a function that draws two barplots facing opposite directions. This is what I managed so far: ### import numpy as np import matplotlib.pyplot as plt fr

Re: [Matplotlib-users] using subscripts and tex in labels

2010-01-31 Thread Eric Firing
per freem wrote: > hi all, > > two quick questions about labels. first, is there a way to make > subscripts/superscripts *without* using TeX in labels? For example, I > use helvetica in all my labels and I want to plot something like: > plt.xlabel("log10") where "10" is a subscript of "log", but w

Re: [Matplotlib-users] using subscripts and tex in labels

2010-01-31 Thread Gökhan Sever
On Sun, Jan 31, 2010 at 4:21 PM, per freem wrote: > hi all, > > two quick questions about labels. first, is there a way to make > subscripts/superscripts *without* using TeX in labels? For example, I > use helvetica in all my labels and I want to plot something like: > plt.xlabel("log10") where "

[Matplotlib-users] using subscripts and tex in labels

2010-01-31 Thread per freem
hi all, two quick questions about labels. first, is there a way to make subscripts/superscripts *without* using TeX in labels? For example, I use helvetica in all my labels and I want to plot something like: plt.xlabel("log10") where "10" is a subscript of "log", but without doing: plt.xlabel(r"$\

[Matplotlib-users] Values returned by axis() do not match the actual axis in the plot window

2010-01-31 Thread photonicsphan
Hello, I have matplotlib widget set up in a PyQt 4 program. The axis is set for auto scaling. I'm using the following command to determine the upper y boundary: self.plotWidget.canvas.ax.axis()[3] where plotWidget is the name of the widget in my program. I get a number from this command just

Re: [Matplotlib-users] Problem formatting a 'step' histogram with a log scale and empty bins.

2010-01-31 Thread Eric Firing
b9o2jnbm tsd71eam wrote: > Hi! > > I want to create a histogram with the step scale and I am finding > an inconstancy when using a log scale. I have a very simple example > without a log scale which works just as expected creating alternating > bins with value one and value zero. > > from pyla

[Matplotlib-users] Problem formatting a 'step' histogram with a log scale and empty bins.

2010-01-31 Thread b9o2jnbm tsd71eam
Hi! I want to create a histogram with the step scale and I am finding an inconstancy when using a log scale. I have a very simple example without a log scale which works just as expected creating alternating bins with value one and value zero. from pylab import * hist([0.5,2.5,4.5],bins=[0,1,2,3,

[Matplotlib-users] how to add text below the legend

2010-01-31 Thread Ernest Adrogué
Hi, I would like to add some text relative to the legend, let's say below it, and I don't know how to get the legend coordinates so I can pass them to the text() method. Does anyone know how to do it? Alternatively, if there was a way to add text inside the legend itself, it would also do the tr

[Matplotlib-users] AXES properties

2010-01-31 Thread kc106_2005-matplotlib
BTW: I tried to use set_position to change the position of the axes label as suggested by previous posting. No effect. - Original Message > > Hello, > > > > I am creating a plot with multiple y-axis (up to 6) and twinx > works pretty well. The problem is that there are too much wast