Re: [Matplotlib-users] matplotlib v2.0.0b1

2016-05-31 Thread Skip Montanaro
> A build of the docs is available at http://matplotlib.org/2.0.0b1 Thanks. Is there a "What's New" page in the docs? Or maybe an upgrade guide which identifies incompatibilities with 1.5? Skip Montanaro who still remembers John Hunter's interview presentation at TradeLi

Re: [Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Skip Montanaro
Benjamin> Kinda sounds a bit like a barchart with the 'step' option, I think? Almost, but not quite. I think of barcharts as displaying truly discrete data, often with the dependent variable being a count of some sort and the independent variable being a bucket. In my example, while prices X and Y

[Matplotlib-users] Equivalent of d3's "step-after" interpolation?

2014-10-30 Thread Skip Montanaro
I've been doing some work with d3 recently. It's certainly been an education... Out of the box, it supports several different types of interpolation between two points , which I've found quite useful. It allows me t

Re: [Matplotlib-users] List of matplotlib-using software for wikipedia

2014-10-08 Thread Skip Montanaro
On Sun, Oct 5, 2014 at 4:33 PM, Frank Lindner wrote: > I would like to have a list of software, which uses matplotlib to extend > the wikipedia in some other languages. While that is a noble quest, unless you plan to maintain that list indefinitely, I think it might do more harm than good. Consid

Re: [Matplotlib-users] No output when using webagg backend

2014-05-06 Thread Skip Montanaro
> I'm trying to use the webagg backend for the first time, and seem to > be bumping into a common problem - nothing appears. I tried this at home on my Mac. Tornado was already installed, so I updated it to 3.2.1, and ran a Matplotlib app I have which allows me to set the backend on the command li

Re: [Matplotlib-users] How to wrap a profile

2014-05-06 Thread Skip Montanaro
On Tue, May 6, 2014 at 12:10 PM, Marc Pelletier wrote: > > Is there a simple way to accomplish this? Do some modulo arithmetic on your Y values and lie (in your tick labels) about the actual numeric values plotted on the Y axis? Skip -

[Matplotlib-users] No output when using webagg backend

2014-05-06 Thread Skip Montanaro
I'm trying to use the webagg backend for the first time, and seem to be bumping into a common problem - nothing appears. The first time I tried, I got a complaint that tornado was missing, so I installed it. After that, I get to try plotting. Here's my example: >>> import matplotlib >>> matplotlib

Re: [Matplotlib-users] savefig - legend only

2014-01-31 Thread Skip Montanaro
ago, you can call my_legend.draggable(True) then drag the legend where you want (in normal pointer mode). Then you just need to save the figure and not worry about fiddling with it later. Skip Montanaro -- WatchGuard Dimensi

Re: [Matplotlib-users] Interative legend manipulation?

2014-01-09 Thread Skip Montanaro
> > On that assumption, I tried changing the legend to be associated with the > right Y axis: > > if a legend is requested: > labels = [line.get_label() for line in lines] > if I have right axis data to plot: > right_plot.legend(lines, labels).draggable(True) > else: > l

Re: [Matplotlib-users] Interative legend manipulation?

2014-01-09 Thread Skip Montanaro
>> I believe (as of v1.3.1) that after you create the legend you call >> leg.draggable(True) >> http://matplotlib.org/api/legend_api.html#matplotlib.legend.Legend.draggable > > Outstanding! (Google was not my friend here. I wasn't searching for > "draggable.") It works if I only plot using the lef

Re: [Matplotlib-users] Matplotlib interactive shortcuts?

2014-01-08 Thread Skip Montanaro
Apologies. Gmail (or my fingers) were acting up... On Wed, Jan 8, 2014 at 3:39 PM, Skip Montanaro wrote: > I'm happy with the draggable legends, but I have a problem. It seems > there are three pointer modes, the initial mode (updates x, y as you > move the mouse), zoom rectangle

[Matplotlib-users] Matplotlib interactive shortcuts?

2014-01-08 Thread Skip Montanaro
I'm happy with the draggable legends, but I have a problem. It seems there are three pointer modes, the initial mode (updates x, y as you move the mouse), zoom rectangle mode, and pan/zoom mode. Once I enter either of those modes, I can't see how to get back to the original mode. I found this navig

Re: [Matplotlib-users] Interative legend manipulation?

2014-01-07 Thread Skip Montanaro
> I believe (as of v1.3.1) that after you create the legend you call > leg.draggable(True) > http://matplotlib.org/api/legend_api.html#matplotlib.legend.Legend.draggable Outstanding! (Google was not my friend here. I wasn't searching for "draggable.") Skip ---

[Matplotlib-users] Interative legend manipulation?

2014-01-07 Thread Skip Montanaro
Sometimes the legend simply gets in the way. You can't always guess the correct placement (think generic tool which processes lots of different input data sets), or zooming/panning makes it obscure a chunk of the plot you want to look at. Is it possible to move it interactively? I'm using mpl 1.3.1

[Matplotlib-users] Question about backends and X

2013-12-17 Thread Skip Montanaro
I have a matplotlib application which can display a plot or write it to a file based on command line flags. I have discovered that if it is run without DISPLAY set (say, from a crontab file) that the default backend (I have no matplotlibrc file) attempts to chat with X, causing crashes. I've worked

[Matplotlib-users] mpl 1.3 & xkcd

2013-10-17 Thread Skip Montanaro
At work both mpl 1.1 and mpl 1.2 are installed. (I have no idea why.) Vagaries of our current packaging cause problems (import finds 1.1 before 1.2 in sys.path). The question was what to do. I took a look at the latest What's New document and concluded that removing 1.1 would be the best route. In

[Matplotlib-users] Problems using Matplotlib from a GTK app

2013-10-11 Thread Skip Montanaro
I want to use matplotlib as a component of a larger, event-driven GTK app. That means pylab.show is (I think) not the way to go, as it starts up its own event loop which doesn't return. I've tried to clear and plot in my event handler, but my plot is never displayed. My initialization code looks l

Re: [Matplotlib-users] How to control the y feedback value?

2013-09-19 Thread Skip Montanaro
> I assume that you are using a twinx call to get the second y axis. I think > that this question has come up before, and I think the solution was to switch > which data are put on the second set of axes. (Of course to keep the same > visual layout you would have to play with the y axis spine

Re: [Matplotlib-users] Graph animation performance

2013-08-25 Thread Skip Montanaro
> def updateGraph(self,data): > datacut = data[1 - self.DiagrammBreite.get_value():1] > self.line.set_ydata(datacut) > self.line.set_xdata(numpy.arange(0, datacut.size, 1)) > self.fig.canvas.draw() If nothing else, it appears that the plot's x data are c

Re: [Matplotlib-users] Graphing in an existing PyGTK window

2013-08-19 Thread Skip Montanaro
I'm not much of a matplotlib user, and started poking around for "GtkSocket matplotlib". I'm not sure that's the right direction, however, it eventually led me to this blog post which only exists now in the Wayback Machine: http://web.archive.org/web/20111005011905/http://www.serpia.org/blog/2007

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
> I am not at all familiar with dates in matplotlib, but what does plt.xlim() > yield? Or are the limits not updated before calling the tick formatter? Bingo! I changed "plt" to "pylab" and now I have access to the x range of the current viewport. Thanks, Skip ---

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
Let me return to my FuncFormatter usage. As I indicated in an earlier post, I made a single format decision based on the x range of the entire data set. The decision code was straightforward: x_delta = x_range[1] - x_range[0] if x_delta > int(1.5 * 365) * ONE_DAY: xfmt = "%Y-%m-%

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
On Fri, Jul 12, 2013 at 8:47 AM, Skip Montanaro wrote: > Is there some way to get the x axis to display > fractions of a second? There is no strftime format character > corresponding to that. (I proposed one on python-dev several years > ago, but I don't think it was ever ado

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
> You're suggesting that I shouldn't have to do anything with formatters > and locators if my X values are datetime objects? Maybe I should > simply scrub any locator/formatter initialization altogether. Did that. Works just as before with my custom FuncFormatter, and with my explicit AutoDateFo

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Skip Montanaro
> Are you definately passing through datetime objects, or are you passing > through the datetime "ordinals" / Julian time? Definitely datetime objects: if xtime: min_x = datetime.datetime(, 12, 31, 23, 59, 59) max_x = datetime.datetime(1970, 1, 1, 0, 0, 0) def pars

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-11 Thread Skip Montanaro
> I have a small matplotlib app I wrote to plot columns of a CSV files. > The X axis is almost always time. Once displayed, I will often zoom in > on a small patch of a plot. I'm currently selecting the strftime > format based on the original time range of the input. As I zoom in, > however, that

[Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-10 Thread Skip Montanaro
I have a small matplotlib app I wrote to plot columns of a CSV files. The X axis is almost always time. Once displayed, I will often zoom in on a small patch of a plot. I'm currently selecting the strftime format based on the original time range of the input. As I zoom in, however, that doesn't w

Re: [Matplotlib-users] matplotlib locale (language) settings: how to change default ? (e.g. in plot_date labels)

2013-06-03 Thread Skip Montanaro
> In my mpl.rcParams, 'axes.formatter.use_locale' is set to False. Have you tried setting this value to True? Skip -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designe

Re: [Matplotlib-users] Bug in cbook.exception_to_str() (mpl 1.2)

2013-05-31 Thread Skip Montanaro
> Would you mind opening up an issue on github - this is definitely > a bug (http://matplotlib.org/faq/troubleshooting_faq.html). Done: https://github.com/matplotlib/matplotlib/issues/2104 Skip -- Get 100% visibility int

[Matplotlib-users] Bug in cbook.exception_to_str() (mpl 1.2)

2013-05-31 Thread Skip Montanaro
le "%s", line %d, in %s' % (filename,lineno,name)) File "/home/skipm/x86_64-linux3.1/lib/python2.7/traceback.py", line 13, in _print file.write(str+terminator) TypeError: unicode argument expected, got 'str' Skip Montanaro s...@pobox.com

Re: [Matplotlib-users] One legend, two axes?

2010-12-15 Thread Skip Montanaro
> Skip,You can call figlegend() and build a legend for the figure, > irrespectively of any axes. Thanks. Sounds like exactly what I need. Skip -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to conne

[Matplotlib-users] One legend, two axes?

2010-12-14 Thread Skip Montanaro
associated with the right-hand axis, four v. five if I get the legend associated with the left-hand axis). Thanks, Skip Montanaro s...@pobox.com -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the

Re: [Matplotlib-users] how to display figure from a GUI app?

2010-09-30 Thread Skip Montanaro
Benjamin Root writes: > Which version of matplotlib are you using? According to matplotlib.__version__ I'm running 1.0.svn. > There have been numerous improvements to interactivity and multiple calls > to show() in version 1.0 and beyond.There might still be some issues with > multiple gui even

[Matplotlib-users] how to display figure from a GUI app?

2010-09-29 Thread Skip Montanaro
ere? ... Instead of show() or draw() as the last line what should I be doing? Thx, Skip Montanaro -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment

[Matplotlib-users] Can't resize plot window on Mac

2009-10-25 Thread Skip Montanaro
ages like: RCNE SendEventToEventTarget (suom 8 ) failed, -9870 When I use the TkAgg backend no plot window appears at all. (I installed TkAqua. Dunno if that makes a difference.) Any ideas about how to figure out what's going on?

Re: [Matplotlib-users] Plotting with times - axis labels an d eliding times

2009-10-24 Thread Skip Montanaro
> I only started using matplolib a few days ago, but I think I know how > to do what you want: ... Thanks. Once I figured out how to get the axes to operate on (gca() :confused:) I was able to easily adapt your solution to my needs. Skip

[Matplotlib-users] Plotting with times - axis labels and eliding times

2009-10-24 Thread Skip Montanaro
often inappropriate to the scale. How to I control the format of the x axis labels? * Samples are only collected for part of the time each day, say from 01:00 to 15:00. How can I elide the gaps and perhaps plot a vertical line to signify the elided gaps? Thanks, Skip Mont