Not sure what exactly you want. Is this close?
ax = subplot(111)
tr = ax.get_xaxis_transform()
ax.plot([0.2, 0.8], [0.5, 0.5],
transform=tr)
The x-coodinate is in data coordinate, but y coordinate is in
(normalized) axes coordinate.
More about the transforms behind matplotlib can be found in
http://matplotlib.sourceforge.net/trunk-docs/users/transforms_tutorial.html
-JJ
On Thu, Mar 4, 2010 at 3:10 AM, Timo Heine <[email protected]> wrote:
> Hello,
> I'v made a small program which plots data from a CAN-bus log file. Some of
> the data to plot is logical type on/off values (bit on or off). I have tried
> to find a way to plot this kind of data with no success.
> Basically what I want to do is to draw a horizontal line with relative y
> co-ordinates and absolute xmin and xmax co-ordinate. Then I could draw a
> line when a bit is high and have it always in plot area even when zooming
> etc. Like axhline(...) but with relative y and absolute x
> co-ordinates. Another way to do this could be using subplots, but I can't
> figure out how to use same x-scale on the both plots.
> Any suggestions?
> Best Regards
> Timo
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users