SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S





1
(11)
2
(1)
3
(5)
4
(25)
5
(14)
6
(36)
7
(13)
8
(15)
9
10
(5)
11
(5)
12
(11)
13
(15)
14
(9)
15
(16)
16
(3)
17
(13)
18
(7)
19
(9)
20
(12)
21
(2)
22
(6)
23
24
(2)
25
(1)
26
(16)
27
(7)
28
(11)
29
(8)
30
(1)

Showing 16 results of 16

From: Russell E. O. <ro...@ce...> - 2006年09月15日 22:50:24
In article <450...@no...>,
 Christopher Barker <Chr...@no...> wrote:
> Russell E Owen wrote:
> > Interesting idea. I'm not sure I'd know how to use more than one numerix 
> > option at once,
> 
> well, I dint' mean more than one numerix option, exactly. What I meant 
> was that MPL is using numarray, but another module you've imported is 
> using Numeric (or numpy or whatever).
Ah. I can guarantee that's happening. Some of my code uses Numeric (due 
to high speed on short arrays) and some uses numarray (because I started 
using it for all new code when it looked like it would take over). I 
hope to switch to numpy for everything once the dust settles, but I 
don't want to force my users to all move at once (a lot of them are on 
unix and will have to manually install numpy -- no big deal, but I get 
complaints every time I require a new package).
> ...Does it happen with wxAgg? or just plain ol Agg? also try the non-agg TK 
> back-end.
I don't have wx or gtk installed, so no easy way to test those backends.
It does not crash with plain old Agg (but of course I don't see any 
plot).
I'll be happy to try the "non-agg TK back-end" if you can tell me what 
setting to use for it. I didn't see it in the matplotlibrc's list of 
options (but WXAgg is also missing from that particular list), nor on 
the "Which backend should I use?" page.
> If not, then you've apparently found a tkAgg bug.
> 
> TK has always been a bit of a second-class citizen on the Mac -- why 
> haven't you switched to wx yet? ;-)
I started this project several years ago and at the time Tcl/Tk was the 
only game in town for Mac+unix+windows cross-platform support. 
Admittedly the Mac support was poor, but it has gotten much better, and 
I like Tkinter pretty well overall. It would be a major job to switch 
now and I doubt I can justify the expense and time. Sometimes I wish I'd 
used Java, even though the I strongly prefer Python, just to get a 
standard GUI.
I'm bulding matplotlib from source now, just to see if there might be 
some quirk about the installer package.
-- Russell
From: Russell E O. <ro...@ce...> - 2006年09月15日 22:37:28
At 3:12 PM -0700 9/15/06, Christopher Barker wrote:
>Russell E Owen wrote:
>>Interesting idea. I'm not sure I'd know how to use more than one 
>>numerix option at once,
>
>well, I dint' mean more than one numerix option, exactly. What I 
>meant was that MPL is using numarray, but another module you've 
>imported is using Numeric (or numpy or whatever).
Ah. I can guarantee that's happening. Some of my code uses Numeric 
(due to high speed on short arrays) and some uses numarray (because I 
started using it for all new code when it looked like it would take 
over). I hope to switch to numpy for everything once the dust 
settles, but I don't want to force my users to all move at once (a 
lot of them are on unix and will have to manually install numpy -- no 
big deal, but I get complaints every time I require a new package).
> > but it did inspire me to try a few things:
>
>>backend : TkAgg
>>numerix : numarray
>>interactive : True
>>and the crash still happens:
>>from pylab import *
>>plot([1,2,3,4])
>
>>I also tried setting numerix to Numeric and it still happens.
>
>Does it happen with wxAgg? or just plain ol Agg? also try the 
>non-agg TK back-end.
I don't have wx or gtk installed, so no easy way to test those backends.
It does not crash with plain old Agg (but of course I don't see any plot).
I'll be happy to try the "non-agg TK back-end" if you can tell me 
what setting to use for it. I didn't see it in the matplotlibrc's 
list of options (but WXAgg is also missing from that particular 
list), nor on the "Which backend should I use?" page.
>If not, then you've apparently found a tkAgg bug.
>
>TK has always been a bit of a second-class citizen on the Mac -- why 
>haven't you switched to wx yet? ;-)
I started this project several years ago and at the time Tcl/Tk was 
the only game in town for Mac+unix+windows cross-platform support. 
Admittedly the Mac support was poor, but it has gotten much better, 
and I like Tkinter pretty well overall. It would be a major job to 
switch now and I doubt I can justify the expense and time. Sometimes 
I wish I'd used Java, even though the I strongly prefer Python, just 
to get a standard GUI.
I'll try bulding matplotlib from source, just to see if there might 
be some quirk about the installer package.
-- Russell
From: Christopher B. <Chr...@no...> - 2006年09月15日 22:12:42
Russell E Owen wrote:
> Interesting idea. I'm not sure I'd know how to use more than one numerix 
> option at once,
well, I dint' mean more than one numerix option, exactly. What I meant 
was that MPL is using numarray, but another module you've imported is 
using Numeric (or numpy or whatever).
 > but it did inspire me to try a few things:
> backend : TkAgg
> numerix : numarray
> interactive : True
> and the crash still happens:
> from pylab import *
> plot([1,2,3,4])
> I also tried setting numerix to Numeric and it still happens.
Does it happen with wxAgg? or just plain ol Agg? also try the non-agg TK 
back-end.
If not, then you've apparently found a tkAgg bug.
TK has always been a bit of a second-class citizen on the Mac -- why 
haven't you switched to wx yet? ;-)
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Russell E. O. <ro...@ce...> - 2006年09月15日 21:52:57
In article <row...@se...>,
 "Russell E. Owen" <ro...@ce...> 
 wrote:
> I'm trying to figure out a matplotlib crash on MacOS X.
> 
> When I try to plot anything the program exits with:
> alloc: invalid block: 0xa08acb4: a 74 0
...
some followup info:
- This is with matplotlib 0.87.5, but also seen with 0.87.4 and 0.87.2
- This is with ActiveState Tcl/Tk 8.4.11, not 8.4.13 as I originally said
I tried the test again with "debug-annoying" level logging. Before 
running it I:
- deleted everything in ~/.matplotlibrc.
- .../site-packages/matplotlib/mpl-data to ~/.matplotlibrc and stripped 
out all but a few options (something I'd never tried before, but I'm 
hoping it'll leave me a matplotlibrc file that is compatible with future 
versions of matplotlib, for a change):
backend : TkAgg
numerix : numarray 
interactive : False
verbose.level : debug-annoying
verbose.fileo : sys.stdout
I then ran the test:
>>> from pylab import *
>>> plot([1,2,3,4])
>>> show()
The crash happens after the show():
...
RendererAgg.draw_text
RendererAgg._get_agg_font
alloc: invalid block: 0xa08acb4: a 74 0
The full log is here:
<http://rowen.astro.washington.edu/mpl.txt>
One other thing that may be relevant (and is in the log): whenever I run 
matplotlib for the first time after deleting the font cache, I always 
get a spate of warnings like this:
455: UserWarning: Could not open font file 
/System/Library/Fonts/LastResort.dfont
-- Russell
From: Russell E. O. <ro...@ce...> - 2006年09月15日 20:48:55
I'm trying to figure out a matplotlib crash on MacOS X.
When I try to plot anything the program exits with:
alloc: invalid block: 0xa08acb4: a 74 0
I first saw this with a program that uses the object interface, but then 
I tried the simplest pylab demo I could find and the same thing happened.
Setup:
- matplotlib installed from the universal package at pythonmac.org
 configured to use numarray (1.5.1) and the TkAgg back end
- MacOS X 10.4.3 on a PPC mac
- ActiveState Aqua Tcl/Tk 8.4.13
- seen with two different versions of python:
 - ActiveState python 2.4.3 (PPC-only)
 - universal Python 2.4.3 (with _tkinter.so modified to find my Tcl/Tk)
Any ideas?
-- Russell
From: Richard H. C. <hch...@3g...> - 2006年09月15日 19:08:12
Attached is an example. It seems like it autosizes to the initial 
data and from then on only uses that for autoscale purposes. I only 
noticed that while making this test app because I let it autoscale 
the x axis in this one.
R.
From: John H. <jdh...@ac...> - 2006年09月15日 17:20:21
>>>>> "Richard" == Richard Harvey Chapman <hch...@3g...> writes:
 Richard> I'm using the latest matplotlib with wxPython 2.6.2.1 and
 Richard> the WxAGG backend. I have plotted a figure with 5
 Richard> subplots. I intentionally only plotted the first 10
 Richard> points of all of my data traces so I can simulate the
 Richard> look of real-time data. That is, I keep my xlim set to
 Richard> (now-60, now) for a window showing the last 60 seconds
 Richard> only. For the y-axis, I'd like it to autoscale, but it
 Richard> never does. I've tried calling
 Richard> axes.autoscale_view(scalex=False, scaley=True) for each
 Richard> subplot, but with no effect. For each update, I take each
 Richard> line in each subplot and update the x and y data with
 Richard> set_data(). I just add a few points every few seconds. Am
 Richard> I missing something? Why can't I get the y autoscaling to
 Richard> work? Autoscaling is on by default, and I've called
 Richard> get_autoscale_on() to confirm it.
Are you calling fig.canvas.draw() after the autoscale?
If you are still having troubles, please post a complete example....
JDH
From: Richard H. C. <hch...@3g...> - 2006年09月15日 17:05:06
Attachments: PGP.sig
I'm using the latest matplotlib with wxPython 2.6.2.1 and the WxAGG 
backend. I have plotted a figure with 5 subplots. I intentionally 
only plotted the first 10 points of all of my data traces so I can 
simulate the look of real-time data. That is, I keep my xlim set to 
(now-60, now) for a window showing the last 60 seconds only. For the 
y-axis, I'd like it to autoscale, but it never does. I've tried 
calling axes.autoscale_view(scalex=False, scaley=True) for each 
subplot, but with no effect. For each update, I take each line in 
each subplot and update the x and y data with set_data(). I just add 
a few points every few seconds. Am I missing something? Why can't I 
get the y autoscaling to work? Autoscaling is on by default, and I've 
called get_autoscale_on() to confirm it.
Thank you,
Harvey
R.
From: Brinley, C. <Chr...@or...> - 2006年09月15日 16:51:05
VGhhbmtzLA0KSSBhY3R1YWxseSBnb3QgYSB3b3JrIGFyb3VuZCBub3cuIFRoYW5rcyBmb3IgdGhl
IGZvbGxvdy4NCg0KQ2hyaXMgQnJpbmxleSAoY2hyaXMuYnJpbmxleUBvcmJpdHouY29tKQ0KT3Ji
aXR6IC0gQUEuY29tIE9wZXJhdGlvbnMgDQpQaG9uZTogMzEyLTg5NC00Nzg3DQpDZWxsOiAzMTIt
NDc5L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mV0L21hdHBsb3RsaWIuZGF0ZXMuaHRtbA0KDQphbmQgdGhl
c2UgZXhhbXBsZXMNCg0KICBtcGwvZXhhbXBsZXM+IGdyZXAgLWwgTG9jYXRvciAqLnB5DQogIGRh
c2h0aWNrLnB5DQogIGRhdGVfZGVtbzEucHkNCiAgZGF0ZV9kZW1vMi5weQ0KICBkYXRlX2RlbW9f
Y29udmVydC5weSANCiAgZGF0ZV9kZW1vX3JydWxlLnB5DQogIGZpbmFuY2VfZGVtby5weQ0KICBt
YWpvcl9taW5vcl9kZW1vMS5weQ0KICBtYWpvcl9taW5vcl9kZW1vMi5weQ0KICBzdG9ja19kZW1v
LnB5DQo=
From: John H. <jdh...@ac...> - 2006年09月15日 16:42:57
>>>>> "Brinley," == Brinley, Chris <Chr...@or...> writes:
 Chris> Hi, I am having trouble getting a variation of the
 Chris> tutorial plot_date() to work. I get the classic:
 Chris> RuntimeError: xdata and ydata must be the same length.
Hmm, didn't know this had achieved classic status....
 Chris> The tutorial on the matplotlib site shows how to plot
 Chris> dates using whole days. I am plotting using multiple
 Chris> days showing each minute of the day.
 Chris> Before I run plot_date I setup to datetime vars and
 Chris> subtract them to get the timedelta so.. timedelta =
 Chris> enddate - startdate.
 Chris> I then use drange(startdate, enddate, timedelta)
This doesn't look right, since your delta equals the entire range.
Usually you want your delta to be smaller.
 Chris> I pass this range into the plot_date function with my y
 Chris> axis data, which I have confirmed is numeric and the
 Chris> same number of entries as the number of datetimes I want
 Chris> to plot.
Maybe you made a mistake here? It sometimes happens when working
interactively that you add some bad data to a plot, realize your
mistake, then add good data, but still see the error. When this
happens, it is usually because your "hold" state is on and the
previous data is still in your plot. You can clear the figure with
fig.clf()
If you are still having a problem, post a complete example that we
can run.
 Chris> Clearly I am incorrectly telling plotlib the intervals
 Chris> of time I want to plot. What is the best way to plot out
 Chris> an interday chart that has ticks for each min?
 from matplotlib.dates import MinuteLocator
 ...
 # every minute
 ax.xaxis.set_major_locator(MinuteLocator()) 
 # or every 5 minutes
 ax.xaxis.set_major_locator(MinuteLocator(nx.arange(0,61,5)))
You'll probably also want to set the Formatter -- see the user's guide
chapter on tick locating and formatting and also
 http://matplotlib.sf.net/matplotlib.ticker.html
 http://matplotlib.sf.net/matplotlib.dates.html
and these examples
 mpl/examples> grep -l Locator *.py
 dashtick.py
 date_demo1.py
 date_demo2.py
 date_demo_convert.py 
 date_demo_rrule.py
 finance_demo.py
 major_minor_demo1.py
 major_minor_demo2.py
 stock_demo.py
From: John H. <jdh...@ac...> - 2006年09月15日 16:33:05
>>>>> "axel" == axel breuer <axe...@bn...> writes:
 axel> Hi, I run python + pylab in Linux.
 axel> When I type:
 >>>> import pylab pylab.plot([1,2,3])
 axel> A window pops up but nothing is drawn in it (!?!). So I
 axel> type:
 >>>> pylab.draw()
 axel> The plot is then correctly drawn ( but I still do not see
 axel> the lower buttons of the toolbar !?!)
 axel> My problem is that I cannot close the plot window nor by
 axel> clicking the "upper-right-cross" button of that wndow, nor
 axel> by typing:
 >>>> pylab.close()
 axel> The window remains displayed...
You must uses a threaded python shell to use GTK* in interactive mode,
as described at http://matplotlib.sf.net/interactive.html
Recommended is 
 > ipython -pylab
or 
 > ipython -gthread
JDH
From: John H. <jdh...@ac...> - 2006年09月15日 16:30:08
>>>>> "Esdras" == Esdras Caleb <ach...@gm...> writes:
 Esdras> its this tipe of grafics I want see anexed img grafics of
 Esdras> experimental poits, tehrtea are a way to do it in
 Esdras> mathplot? 2006年9月12日, David Chin
x, y = nx.mlab.rand(2,1000)
plot(x, y, '+')
JDH
From: David A. <irb...@gm...> - 2006年09月15日 15:53:48
Okay, I appear to have my self in dependency hell now :s
I'm trying to get a working installation of numpy,scipy and mpl
together. I'm going about this using the scipy superpack download,
which contains all three and a few supporting things. Trouble is, the
build of mpl contained in the superpack is missing it's __init__.py
file - so python doesnt recognise it as a module to import.
It was suggested by the SciPy crowd that I should pinch the
__init__.py from a 'working' package of mpl and using that to make the
module work. Sounds a bit of a bodged way of doing this, and indeed,
using the __init__.py from the most recent mpl release produces the
following:
>>> from pylab import *
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pylab.py",
line 1, in ?
 from matplotlib.pylab import *
 File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
line 200, in ?
 from axes import Axes, PolarAxes
 File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
line 15, in ?
 from axis import XAxis, YAxis
 File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py",
line 25, in ?
 from font_manager import FontProperties
 File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/font_manager.py",
line 39, in ?
 from matplotlib import ft2font
ImportError: Failure linking new module:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so:
Library not loaded: /usr/local/lib/libfreetype.6.dylib
 Referenced from:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so
 Reason: image not found
libfreetype issues.
Anyone got a solution to this problem that will get me a working
install of all 3 modules?
Cheers,
Dave
On 15/09/06, Charlie Moad <cw...@gm...> wrote:
> mpl 0.87.5 is compiled against numpy 1.0b5. It should remain
> compatible with future release of 1.0.
>
> On 9/15/06, David Andrews <irb...@gm...> wrote:
> > Hi everyone,
> >
> > I'm confused as to what version of NumPy this most recent release of
> > matplotlib wants to be used with - I get the following message:
> >
> > >>> from pylab import *
> > RuntimeError: module compiled against version 1000002 of C-API but
> > this version of numpy is 1000000
> > ...etc
> >
> > This suggests to me that my current version of numpy is out of date.
> > The most recent version of numpy on their sourceforge site is
> > apparently 0.9.8, and a beta version - 1.0b5
> >
> > Cheers,
> >
> > Dave
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
From: Charlie M. <cw...@gm...> - 2006年09月15日 13:18:18
mpl 0.87.5 is compiled against numpy 1.0b5. It should remain
compatible with future release of 1.0.
On 9/15/06, David Andrews <irb...@gm...> wrote:
> Hi everyone,
>
> I'm confused as to what version of NumPy this most recent release of
> matplotlib wants to be used with - I get the following message:
>
> >>> from pylab import *
> RuntimeError: module compiled against version 1000002 of C-API but
> this version of numpy is 1000000
> ...etc
>
> This suggests to me that my current version of numpy is out of date.
> The most recent version of numpy on their sourceforge site is
> apparently 0.9.8, and a beta version - 1.0b5
>
> Cheers,
>
> Dave
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: David A. <irb...@gm...> - 2006年09月15日 12:48:16
Hi everyone,
I'm confused as to what version of NumPy this most recent release of
matplotlib wants to be used with - I get the following message:
>>> from pylab import *
RuntimeError: module compiled against version 1000002 of C-API but
this version of numpy is 1000000
...etc
This suggests to me that my current version of numpy is out of date.
The most recent version of numpy on their sourceforge site is
apparently 0.9.8, and a beta version - 1.0b5
Cheers,
Dave
From: Volker L. <lor...@ph...> - 2006年09月15日 12:35:50
John Hunter wrote:
>>>>>> "Volker" =3D=3D Volker Lorrmann <lor...@ph...> w=
rites:
>>>>>> =20
>
> Volker> Hi guys, how can i tell matplotlib to only show the xgrid
> Volker> (grid without y -lines ;) ) I=B4ve searched and googled a
> Volker> lot. But i can=B4t find a solution.
>
> You should be able to toggle the grid separately with
>
> ax.xaxis.grid(True)
> ax.yaxis.grid(False)
>
> Note that the grid command takes optional kwargs to control the major
> and minor tick gridding.
>
> JDH
> =20
Thanks for your help.
I=B4ve tried to work with axvline instead, but sadley avline can=B4t handle=
=20
vectors/arrays.
Volker
--=20
-----------------------
Volker Lorrmann
Universit=E4t W=FCrzburg
Experimentelle Physik 6
Am Hubland
97074 Wuerzburg
Germany
Tel: +49 931 888 5770
vol...@ph...

Showing 16 results of 16

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /