[Matplotlib-users] bug with twinx and scientific style

2010-12-23 Thread Václav Šmilauer
Hi there, when I use twinx() to have y1 and y2 axes and set ticklabel_format style to 'sci' on the y2 axis, ticks on the y2 are properly numbered, but the "1e-5" that is supposed to be atop y2 appears on the top of y1 instead. When both y1 and y2 use the exponents, they overwrite each other --

[Matplotlib-users] How to ask a Figure whether the zoom was manually changed?

2010-07-06 Thread Václav Šmilauer
Hello, I have a simple live-update thread (basically calls set_xdata and set_ydata on all lines with the new data, then calls canvas.draw() on all figures). 1. I would like to zoom the figure to contain the whole data range after each update, but ONLY in case the figure zoom was not changed manua

[Matplotlib-users] \def in mathtext

2010-04-04 Thread Václav Šmilauer
Hi all, I am using mathtext (via sphinx) for documenting larger physics simulation software (https://www.yade-dem.org/sphinx/). I am converting some docs from LaTeX, where I had defined simple macros like \def \vec#1{\mathbf{#1}}, \curr#1{#1^{\circ}} or \let\eps\varepsilon -- to unify notations an

[Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Václav Šmilauer
Hi, about a year ago I developed for my own purposes a routine for averaging irregularly-sampled data using gaussian average. I would like to contribute it to matplotlib, after a clean-up, if there is interest. First it stores all data points in a (regular) grid. One can ask for value at arbitrar

[Matplotlib-users] dynamically updated plots

2008-07-11 Thread Václav Šmilauer
Hello, I would like to get periodically updated plots: the data set grows at some rate (5 numbers/sec) and I would like to update all plots I have (may be multiple) once in 5 seconds, for example. I thought of storing Figure objects after creating the plots, then launch separate thread that would