[Matplotlib-users] lines with fixed pixel thickness

2011-08-01 Thread Mátyás János
Dear users, I would like to draw lines with fixed pixel thickness, for example 1, 2, or 3 pixels, which remains 1 pixel, even if I zoom in and out the graph in my interactive application. How can I do this with matplotlib? I tried to set linewidth to 1 on creating LineCollection, but this

[Matplotlib-users] plot with discontinuous x-axis

2011-08-01 Thread denoise
Hi there, i'd like to plot a data series with signal values over timestamps, what works perfectly. But if I want to display 2 series with different time domains, theres a gap in between. For example my first set of data is from time (x) 1-3 and the second from 7-8. If I send the mixed array to

Re: [Matplotlib-users] plot with discontinuous x-axis

2011-08-01 Thread Warren Weckesser
On Thu, Jul 28, 2011 at 5:41 AM, denoise hubert.g...@partner.bmw.de wrote: Hi there, i'd like to plot a data series with signal values over timestamps, what works perfectly. But if I want to display 2 series with different time domains, theres a gap in between. For example my first set of

Re: [Matplotlib-users] how can i use utf-8 or just how can i plot the datetime in local settings ?

2011-08-01 Thread Michael Droettboom
This is a bug in that matplotlib is not reading the preferred encoding correctly, because doing so has undesired side effects in some cases. An easy workaround is to add the following to the top of your script (before importing matplotlib): import locale locale.setlocale(locale.LC_ALL, '')

Re: [Matplotlib-users] lines with fixed pixel thickness

2011-08-01 Thread Benjamin Root
On Fri, Jul 29, 2011 at 4:51 PM, Mátyás János mjan...@gmail.com wrote: Dear users, I would like to draw lines with fixed pixel thickness, for example 1, 2, or 3 pixels, which remains 1 pixel, even if I zoom in and out the graph in my interactive application. How can I do this with

[Matplotlib-users] Autoscaling after removing lines.

2011-08-01 Thread Goyo
Hy all, I recently had a pretty hard time trying to figure out how to properly autoscale a plot after removing a line (see attached script). Finally I found at [1] that I have to explicitly refresh the axes dataLim before autoscaling. In [1] John Hunter says that computing the proper dataLim can

[Matplotlib-users] close gtk2 figure without main_quit() call

2011-08-01 Thread Alexey Uimanov
I am writing gtk2 application on python, I need to plot a chart in separate window and i just use this code def matplot_print(self, print_values): \brief print data by matplotlib and shw the figure \param print_values [(name - is a string, [(datetime, value)] - is a list of

[Matplotlib-users] Matlab-like Cursor Mode

2011-08-01 Thread Tudor Vinereanu
Hi All, Something I use a lot in Matlab is probing points from a plot, basically clicking to select the nearest point and show a tooltip with the x and y values. I didn't manage to reproduce this exactly with matplotlib, but I found the code from the link below which is close enough to what I

Re: [Matplotlib-users] plot with discontinuous x-axis

2011-08-01 Thread Paul Ivanov
Warren Weckesser, on 2011-08-01 09:49, wrote: There are a couple examples here: http://stackoverflow.com/questions/5656798/python-matplotlib-is-there-a-way-to-make-a-discontinuous-axis I was going to say: Damn those stackoverflow cool kids, reinventing the wheel when we already have an