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
(2)
2
(1)
3
(17)
4
(9)
5
(2)
6
(5)
7
(8)
8
(11)
9
(6)
10
(6)
11
(21)
12
(21)
13
(17)
14
(25)
15
(15)
16
(2)
17
18
(9)
19
(22)
20
(25)
21
(31)
22
(19)
23
(2)
24
(5)
25
(19)
26
(10)
27
(13)
28
(14)
29
(20)
30
(5)
31
(9)






Showing 22 results of 22

From: Jae-Joon L. <lee...@gm...> - 2010年01月14日 22:50:01
This has indeed been fixed.
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/ticker.py?r1=7677&r2=7980
Some minor changes may not be listed in the changelog.
Regards,
-JJ
On Thu, Jan 14, 2010 at 12:29 PM, Jeremy Lewi <jl...@in...> wrote:
> Hello,
>
>
>
> I think I’m using matplotlib 0.99.0. IndexFormatter in matplotlib/ticker.py
> doesn’t appear to subclass Formatter which I think might be a bug. I did a
> quick search of the changelog for 0.99.1 and I couldn’t find any mention of
> this issue.
>
>
>
>
>
>
>
> Jeremy Lewi
>
> Engineering Scientist
>
> The Intellisis Corporation
>
> jl...@in...
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Andrew S. <str...@as...> - 2010年01月14日 22:39:21
Yagua Rovi wrote:
> Hello Andrew,
>
> For the same need as the previous message, I try to display in colour
> a given surface based with on polar coordinates. Z = f (r, theta)
> Can you show me which function I have to use?
> I don't know what to do with "polar (theta, r)" function.
> Is there an option for imshow ?
> I don't see an example like that in the demo gallery of matplotlib.
> Perhaps it is not possible, but I don't believe there is a lot of
> things impossible with matplotlib ! :-)
> Thank you for your valuable help.
> 
Hi Yagua -- this is not possible with imshow, which is for Cartesian, 
rectangular data. Maybe you could transform your data points into 
Cartesian coordinates and then use pcolor. Also, you could resample your 
data onto Cartesian coordinates using the griddata() function (see 
http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata 
) and then use imshow again.
-Andrew
From: Yagua R. <yag...@gm...> - 2010年01月14日 21:11:58
2010年1月14日 Andrew Straw <str...@as...>:
> Yagua Rovi wrote:
>> I use matplotlib since two days only. I have done some things pretty
>> good but I am now in front of a problem an I didn't found a solution
>> in the documentation.
>>
>> I would like to draw the surface defined by the lists X, Y and the matrix Z.
>> I get to a nice graphical output with the following code.
>> My problem is that the labels on the axes indicate values
>> corresponding to the indices in Tables X and Y or something like that.
>> I would like to see the values between xmin and xmax, ymin and ymax.
>> If I uncomment the lines set_xlim and set_ylim, the axes are properly
>> represented, but the picture is shrinked into a corner.
>> How to put the good values on the axes and correct the image full
>> screen and correct scale ?
>>
> I think you want the extent kwarg to imshow. See
> http://www.scipy.org/Plotting_Tutorial for one example.
>
Thanks a lot Andrew, that's good.
From: Christopher B. <Chr...@no...> - 2010年01月14日 20:23:56
Jae-Joon Lee wrote:
> On Thu, Jan 14, 2010 at 4:38 AM, Mark Bakker <ma...@gm...> wrote:
>> Does matplotlib have a routine that can fit a cubic Bezier curve through an
>> array of 2D points?
This looks like a pretty nice algorithm:
http://www.antigrain.com/research/bezier_interpolation/index.html
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: George N. <gn...@go...> - 2010年01月14日 20:11:15
Hi,
I've got data in terms of day numbers, and wish to plot it as a 2D
scatter plot, with the color denoting the day.
I'd like the colorbar to be annotated in Apr 7 type format...
I've tried the following code without success.
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter,DayLocator
from matplotlib import cm
data = np.arange(24.)+700000.
x = np.random.rand(24)
y = np.random.rand(24)
fig = plt.figure()
ax = fig.add_subplot(111)
smap = ax.scatter(x,y,s=10,c=data,edgecolors='none',marker='o',cmap=cm.jet)
cb = fig.colorbar(smap,orientation='horizontal',shrink=0.7)
cax=cb.ax
cax.xaxis_date()
cax.xaxis.set_major_locator(DayLocator())
cax.xaxis.set_major_formatter(DateFormatter('%b %d'))
plt.show()
Any ideas on how to do this would be appreciated.
George Nurser.
The code fails with the trace
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_wx.pyc
in _onPaint(self, evt)
 1154 drawDC = wx.PaintDC(self)
 1155 if not self._isDrawn:
-> 1156 self.draw(drawDC=drawDC)
 1157 else:
 1158 self.gui_repaint(drawDC=drawDC)
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_wxagg.pyc
in draw(self, drawDC)
 57 """
 58 DEBUG_MSG("draw()", 1, self)
---> 59 FigureCanvasAgg.draw(self)
 60
 61 self.bitmap =
_convert_agg_to_wx_bitmap(self.get_renderer(), None)
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.pyc
in draw(self)
 386
 387 self.renderer = self.get_renderer()
--> 388 self.figure.draw(self.renderer)
 389
 390 def get_renderer(self):
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.pyc
in draw_wrapper(artist, renderer, *kl)
 53 def draw_wrapper(artist, renderer, *kl):
 54 before(artist, renderer)
---> 55 draw(artist, renderer, *kl)
 56 after(artist, renderer)
 57
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.pyc
in draw(self, renderer)
 770
 771 # render the axes
--> 772 for a in self.axes: a.draw(renderer)
 773
 774 # render the figure text
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.pyc
in draw_wrapper(artist, renderer, *kl)
 53 def draw_wrapper(artist, renderer, *kl):
 54 before(artist, renderer)
---> 55 draw(artist, renderer, *kl)
 56 after(artist, renderer)
 57
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.pyc
in draw(self, renderer, inframe)
 1759
 1760 for zorder, i, a in dsu:
-> 1761 a.draw(renderer)
 1762
 1763 renderer.close_group('axes')
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.pyc
in draw_wrapper(artist, renderer, *kl)
 53 def draw_wrapper(artist, renderer, *kl):
 54 before(artist, renderer)
---> 55 draw(artist, renderer, *kl)
 56 after(artist, renderer)
 57
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.pyc
in draw(self, renderer, *args, **kwargs)
 747 renderer.open_group(__name__)
 748 interval = self.get_view_interval()
--> 749 for tick, loc, label in self.iter_ticks():
 750 if tick is None: continue
 751 if not mtransforms.interval_contains(interval,
loc): continue
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.pyc
in iter_ticks(self)
 688 Iterate through all of the major and minor ticks.
 689 """
--> 690 majorLocs = self.major.locator()
 691 majorTicks = self.get_major_ticks(len(majorLocs))
 692 self.major.formatter.set_locs(majorLocs)
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/dates.pyc
in __call__(self)
 530 self.rule.set(dtstart=start, until=stop)
 531 dates = self.rule.between(dmin, dmax, True)
--> 532 return self.raise_if_exceeds(date2num(dates))
 533
 534 def _get_unit(self):
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ticker.pyc
in raise_if_exceeds(self, locs)
 680 'raise a RuntimeError if Locator attempts to create
more than MAXTICKS locs'
 681 if len(locs)>=self.MAXTICKS:
--> 682 raise RuntimeError('Locator attempting to generate
%d ticks from %s to %s: exceeds Locator.MAXTICKS'%(len(locs), locs[0],
locs[-1]))
 683
 684 return locs
RuntimeError: Locator attempting to generate 3654 ticks from 730120.0
to 733773.0: exceeds Locator.MAXTICKS
From: Nico S. <nic...@gm...> - 2010年01月14日 19:26:12
> I'm not sure, but one reason could be different backends. What kind of backend
> are you using on the 2 machines?
It was indeed a backend issue, fixed now. Thanks!
--Nico
From: Michael D. <md...@st...> - 2010年01月14日 18:57:40
I'm not sure what the cause may be, particularly since I can't reproduce 
it myself with matplotlib 0.99.1.1.
What backend are you using? Agg, Cairo and Wx all check out for me. 
The examples you point to don't look like Agg output to me... Do you 
have anything in your matplotlibrc?
Mike
Paweł Rumian wrote:
> 2010年1月14日 Michael Droettboom <md...@st...>:
> 
>> Does this example work for you?
>>
>> http://matplotlib.sourceforge.net/examples/pylab_examples/masked_demo.html
>> 
>
> No, it doesn't. The green line is not being drawn.
> After changing the style from 'g' to 'go' (marks instead of line) it
> works flawlessly.
>
> I asked the same question in the scikits mailing list, and was
> redirected to a recent discussion:
> http://old.nabble.com/Re%3A-Still-having-plotting-issue-with-latest%09svnscikits.timeseries-ts20941722.html#a20944512
>
> At first I was sure that it is also my case, but after trying the
> example you've mentioned I'm almost certain that it's not so simple.
>
> So I'm still looking for a possible solution...
>
> greetings,
> Paweł
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Jae-Joon L. <lee...@gm...> - 2010年01月14日 18:18:31
On Thu, Jan 14, 2010 at 4:38 AM, Mark Bakker <ma...@gm...> wrote:
> Does matplotlib have a routine that can fit a cubic Bezier curve through an
> array of 2D points?
>
> I saw some Bezier routines in Path, but couldn't find what I am looking for.
>
As far as I know, no.
> If matplotlib doesn't have it, does anybody have another suggestion in
> Python?
>
The attached is what I have used once.
It uses scipy.interpolate.splprep to fit the input as a B-spline then
convert it to cubic bezier curve.
But I have no idea if this is the best way to do it.
The original code is from
http://mail.scipy.org/pipermail/scipy-dev/2007-February/006651.html
And I only added some mpl-related things.
Regards,
-JJ
From: Jeremy L. <jl...@in...> - 2010年01月14日 17:47:41
Hello,
 
I think I'm using matplotlib 0.99.0. IndexFormatter in matplotlib/ticker.py
doesn't appear to subclass Formatter which I think might be a bug. I did a
quick search of the changelog for 0.99.1 and I couldn't find any mention of
this issue.
 
 
 
Jeremy Lewi
Engineering Scientist
The Intellisis Corporation
jl...@in...
 
From: Andrew S. <str...@as...> - 2010年01月14日 17:47:16
Yagua Rovi wrote:
> I use matplotlib since two days only. I have done some things pretty
> good but I am now in front of a problem an I didn't found a solution
> in the documentation.
>
> I would like to draw the surface defined by the lists X, Y and the matrix Z.
> I get to a nice graphical output with the following code.
> My problem is that the labels on the axes indicate values
> corresponding to the indices in Tables X and Y or something like that.
> I would like to see the values between xmin and xmax, ymin and ymax.
> If I uncomment the lines set_xlim and set_ylim, the axes are properly
> represented, but the picture is shrinked into a corner.
> How to put the good values on the axes and correct the image full
> screen and correct scale ?
> 
I think you want the extent kwarg to imshow. See
http://www.scipy.org/Plotting_Tutorial for one example.
From: Yagua R. <yag...@gm...> - 2010年01月14日 17:37:03
I use matplotlib since two days only. I have done some things pretty
good but I am now in front of a problem an I didn't found a solution
in the documentation.
I would like to draw the surface defined by the lists X, Y and the matrix Z.
I get to a nice graphical output with the following code.
My problem is that the labels on the axes indicate values
corresponding to the indices in Tables X and Y or something like that.
I would like to see the values between xmin and xmax, ymin and ymax.
If I uncomment the lines set_xlim and set_ylim, the axes are properly
represented, but the picture is shrinked into a corner.
How to put the good values on the axes and correct the image full
screen and correct scale ?
Thank you in advance.
#! /usr/bin/env python
from pylab import *
x=[0,1,2,3]
y=[12, 32,81]
z=[2,3,1,4,2,5,6,8,10,4,11,3]
Z=zeros((len(x),len(y)))
count=0
for i in range(0,len(x)):
 for j in range(0,len(y)):
 Z[i,j]=z[count]
 count=count+1
ax = subplot(111)
im = imshow(Z, interpolation='bilinear')
xmin=x[0]
xmax=x[len(x)-1]
ymin=y[0]
ymax=y[len(y)-1]
#ax.set_xlim(xmin,xmax)
#ax.set_ylim(ymin,ymax)
#axes().set_aspect('auto',adjustable='box')
colorbar()
show()
From: Pierre de B. <pd...@ul...> - 2010年01月14日 17:13:32
For eps files, I use epstool:
epstool --copy -b file.eps file_cropped.eps
It does not leave any whitespace, which is sometimes annoying.
Pierre
Le 14 janv. 10 à 17:52, Damon McDougall a écrit :
> Hi Ronald,
>
> I use:
>
> fig.savefig('graph.eps', bbox_inches='tight', pad_inches=0.03)
>
> Play with the parameters and see what you like.
>
> Hope that helps.
>
> Regards,
> -- Damon
>
> --------------------------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.m...@wa...
>
> On 14 Jan 2010, at 15:57, Ronald Römer wrote:
>
>> Hello,
>>
>> I try to find out how could I remove the white padding around my 
>> figure! I allready searched at google for a long time, but can't 
>> find any that changed my problem. Ich create the figure with this 
>> two lines:
>>
>> fig = plt.figure()
>> subfig = fig.add_subplot(111)
>>
>> After adding some plots, lines, annonations ... I change this:
>>
>> plt.axis([a,b,c,d]])
>> plt.axes().set_aspect('equal')
>>
>> I need this for exporting the figure to EPS!
>>
>> I'm using the matplotlib '0.98.5.2'.
>>
>> -- 
>> Mit freundlichen Grüßen
>>
>> Ronald Römer
>> --------------------------------------------------------------------- 
>> ---------
>> Throughout its 18-year history, RSA Conference consistently 
>> attracts the
>> world's best and brightest in the field, creating opportunities 
>> for Conference
>> attendees to learn about information security's most important 
>> issues through
>> interactions with peers, luminaries and emerging and established 
>> companies.
>> http://p.sf.net/sfu/rsaconf- 
>> dev2dev_______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> ---------------------------------------------------------------------- 
> --------
> Throughout its 18-year history, RSA Conference consistently 
> attracts the
> world's best and brightest in the field, creating opportunities for 
> Conference
> attendees to learn about information security's most important 
> issues through
> interactions with peers, luminaries and emerging and established 
> companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Damon M. <D.M...@wa...> - 2010年01月14日 16:52:38
Hi Ronald,
I use:
fig.savefig('graph.eps', bbox_inches='tight', pad_inches=0.03)
Play with the parameters and see what you like.
Hope that helps.
Regards,
-- Damon
--------------------------
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
d.m...@wa...
On 14 Jan 2010, at 15:57, Ronald Römer wrote:
> Hello,
> 
> I try to find out how could I remove the white padding around my figure! I allready searched at google for a long time, but can't find any that changed my problem. Ich create the figure with this two lines:
> 
> fig = plt.figure()
> subfig = fig.add_subplot(111)
> 
> After adding some plots, lines, annonations ... I change this:
> 
> plt.axis([a,b,c,d]])
> plt.axes().set_aspect('equal')
> 
> I need this for exporting the figure to EPS!
> 
> I'm using the matplotlib '0.98.5.2'.
> 
> -- 
> Mit freundlichen Grüßen
> 
> Ronald Römer
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev_______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Ronald R. <rr...@go...> - 2010年01月14日 15:57:53
Hello,
I try to find out how could I remove the white padding around my figure! I
allready searched at google for a long time, but can't find any that changed
my problem. Ich create the figure with this two lines:
fig = plt.figure()
subfig = fig.add_subplot(111)
After adding some plots, lines, annonations ... I change this:
plt.axis([a,b,c,d]])
plt.axes().set_aspect('equal')
I need this for exporting the figure to EPS!
I'm using the matplotlib '0.98.5.2'.
-- 
Mit freundlichen Grüßen
Ronald Römer
From: Filipe P. A. F. <oc...@gm...> - 2010年01月14日 15:06:21
Dear matplotlib users,
I've been successful to plot 2-D lines with dates in the x-axis directly
like:
> plot(time,dens[1,:])
Where times starts at 1998年01月11日 01:00:00 and ends at 1998年02月06日 08:00:00
(633 elements). and dens has 10 elements. Now I'm trying to make a contour
plot like:
> CS = contourf(tempo, depth, dens)
But I cannot make the dates appear, the plot shows only the "date number".
Thanks for any help, Filipe
ps:
matplotlib version: 0.99.1.1
backend: Qt4Agg
llinux Opensuse 11.2
*****************************************************
Filipe Pires Alvarenga Fernandes
Email: fal...@um...
 oc...@gm...
http://ocefpaf.tiddlyspot.com/
*****************************************************
From: Michael D. <md...@st...> - 2010年01月14日 14:16:14
Does this example work for you?
 
http://matplotlib.sourceforge.net/examples/pylab_examples/masked_demo.html
I don't have scikits.timeseries installed, so I can't confirm whether 
your original attached example works or not. Can you produce a 
standalone example that reproduces the problem?
Mike
Paweł Rumian wrote:
> OK, I've done more tests.
>
> The problem occurs always when plotting data from masked array with lines.
>
> When there is a masked field in the array, drawing is stopped, and so
> if the first element is masked, no output can be seen.
>
> When all fields are unmasked, there is no problem.
> Also, drawing with dots works correctly.
>
> Can anybody check if this is a bug or a problem with my setup?
>
> greetings,
> Paweł Rumian
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Paweł R. <go...@gm...> - 2010年01月14日 14:04:44
OK, I've done more tests.
The problem occurs always when plotting data from masked array with lines.
When there is a masked field in the array, drawing is stopped, and so
if the first element is masked, no output can be seen.
When all fields are unmasked, there is no problem.
Also, drawing with dots works correctly.
Can anybody check if this is a bug or a problem with my setup?
greetings,
Paweł Rumian
From: Nico S. <nic...@gm...> - 2010年01月14日 13:53:52
Hi,
somehow I don't manage to set up matplotlib such that I can draw
animations. I've been using the moving sin example from
 http://www.scipy.org/Cookbook/Matplotlib/Animations
which spits out nicely moving sin-waves on one machine, but does
nothing on the other. I'm puzzled. Checked pylab.isinteractive() which
is TRUE.
Any hints?
Cheers,
Nico
From: Paweł R. <go...@gm...> - 2010年01月14日 10:24:41
hello,
I'm a quite new user of matplotlib - currently I'm working with
scikits.timeseries and ran into a problem with rendering plots.
I can draw scatter plots with dots ('.'), but when using lines ('-',
'--', or similar) the graph breaks when missing data occurs.
The best way to describe the problem would be an example:
I'm trying to render the first example from the page:
http://pytseries.sourceforge.net/lib.plotting.examples.html
and what I get looks like the plotting was somehow 'stopped' after the
first occurence of a hole in the data:
http://img191.imageshack.us/img191/5506/testg.png
After changing the marks to dots ('.') it renders like this (correctly):
http://img97.imageshack.us/img97/269/imageap.png
I have searched a bit and found a bug with path.simplify, but setting
it to False doesn't change this behaviour.
I'm using matplotlib-0.99.1.1 from the Gentoo packages.
What can be the reason?
greetings,
Paweł Rumian
From: Mark B. <ma...@gm...> - 2010年01月14日 09:38:43
Hello List,
Does matplotlib have a routine that can fit a cubic Bezier curve through an
array of 2D points?
I saw some Bezier routines in Path, but couldn't find what I am looking for.
If matplotlib doesn't have it, does anybody have another suggestion in
Python?
Thanks,
Mark
From: Pierre-Yves <pi...@pi...> - 2010年01月14日 09:10:13
Dear all,
I am facing a small problem with xlim and xticks and nor google nor the
api helped me (one of the reason being that I likely don't know the
exact term I am looking for).
I am plotting a barplot using pyplot and bar() on matplotlib 0.98.5.2.
If I do not use xticks the x axis goes from 0 to 500 leaving some empty
space at the right of the last bar before the frame.
When I use xticks to name my bar (name being either a string or nothing
I tried both), then the frame come beside the last bar on the right of
the plot.
Then problem is that I want to keep this space between the last bar and
the frame.
I looked at 
pyplot.xlim(0,500)
pyplot.xlim(xmax = 500)
but if print pyplot.axis() returns the correct dimension the frame still
persists at this place.
How could I set the width correctly and use xticks ?
I hope I am clear in my explanations.
Pierre
From: Filipe F. <oc...@ya...> - 2010年01月14日 01:00:40
Attachments: ocefpaf.vcf
 Dear all,
 I new to matplotlib and I need some help with a very simple procedure.
I've been successful to plot dates on the x-axis with the "plot"
command. However, I've been unable to use dates with the contour and
contourf commands.
The command I'm using is:
CS = contourf(time, depth, dens)
Time x-axis shows only the "number" instead of the dates like --
plot(tempo,dens[1,:]).
Thanks for any help. Filipe
3 messages has been excluded from this view by a project administrator.

Showing 22 results of 22

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 によって変換されたページ (->オリジナル) /