Re: [Matplotlib-users] stem plot with horizontal offset (BaseValue)

2015-03-31 Thread ssinfod
In fact, I would like to draw other stem plots each at different offset. Ex: -+_-_--+-_--- -+_---+-_--+--_- -+--+-_--+-_- I also found vlines but I have the same problem I don't know how to add a horizontal offset to the values. Ex: import numpy from matplotlib

Re: [Matplotlib-users] stem plot with horizontal offset (BaseValue)

2015-03-31 Thread Andrew Dawson
Looking at the source code indicates there is a 'bottom' keyword which looks like it controls this, see https://github.com/matplotlib/matplotlib/blob/v1.4.3/lib/matplotlib/axes/_axes.py#L2295 On 31 March 2015 at 19:31, ssinfod wrote: > Hello, > > I found this stem plot example: > http://matplotl

Re: [Matplotlib-users] stem plot with horizontal offset (BaseValue)

2015-03-31 Thread Sterling Smith
I’m not going to claim this is the final answer, but in the documentation for the stem function[1], it specifically says that the horizontal line is drawn at 0. A workaround is to subtract the offset from your data, and relabel the axes…. [1]http://matplotlib.org/api/pyplot_api.html?highlight

[Matplotlib-users] stem plot with horizontal offset (BaseValue)

2015-03-31 Thread ssinfod
Hello, I found this stem plot example: http://matplotlib.org/examples/pylab_examples/stem_plot.html I would like to add an horizontal offset to the step plot. (Ex: +2 on Y axis) What is the equivalent of the Matlab "BaseValue" offset in matplotlib. See Reference: http://www.mathworks.com/help/m

Re: [Matplotlib-users] Interactive Applications using Matplotlib

2015-03-31 Thread Paul Hobson
Congrats, Ben. I know you've been working hard on this for a long time and I'm sure it'll be a great value to those looking to use matplotlib beyond just making a quick figure for a report.  -Paul  — Sent from Mailbox On Tue, Mar 31, 2015 at 11:02 AM, Benjamin Root wrote: > The book I have

[Matplotlib-users] Interactive Applications using Matplotlib

2015-03-31 Thread Benjamin Root
The book I have been working on has now been published! It is about how to use most of the interactive features that comes with matplotlib in order to create your own GUI applications. The concepts are taught by building up a single application piece-by-piece, feature-by-feature. The final chapter