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




Showing 15 results of 15

From: John H. <jdh...@ac...> - 2004年08月11日 20:59:07
>>>>> "James" == James Boyle <bo...@ll...> writes:
 James> In the following code I attempt to plot right and left
 James> yaxis labels each with its own color. The left axis comes
 James> out OK - red, medium The right axis comes out the default.
 James> I have tried everything I could think of (admittedly not
 James> much) to alter any property of the right labels and have
 James> had no success - How do I alter the right axis label
 James> properties in the example below??? thanks for any help.
Hi Jim,
Avoiding for now the question of what the proper interface should be
for accessing the left and right (or top and bottom) tick properties
in general, here's a quick fix that will give you access to all of the
tick labels for a give axis
In matplotlib.axis.py, replace the get_ticklabels method with 
 def get_ticklabels(self):
 'Return a list of Text instances for ticklabels'
 labels1 = [tick.label1 for tick in self.get_major_ticks() if tick.label1On]
 labels2 = [tick.label2 for tick in self.get_major_ticks() if tick.label2On]
 return labels1+labels2
The current behavior was to just return the label1 instances (left for
xaxis, bottom for yaxis).
Perhaps the best solution is to add an optional arg to all the
get_tick* methods
 labels = ax.get_xticklabels() # get all
 labels = ax.get_xticklabels('left') # get left labels
 labels = ax.get_xticklabels('right') # get right labels
and so on for get_xticks, get_xticklines and the y and set* analogs.
JDH
From: James B. <bo...@ll...> - 2004年08月11日 20:22:19
In the following code I attempt to plot right and left yaxis labels 
each with its own color. The left axis comes out OK - red, medium
The right axis comes out the default.
I have tried everything I could think of (admittedly not much) to alter 
any property of the right labels and have had no success -
How do I alter the right axis label properties in the example below???
thanks for any help.
Jim
This is taken from the 'two_scales.py' in the examples directory.
from matplotlib.matlab import *
ax1 = subplot(111)
t = arange(0.0, 10.0, 0.01)
s1 = exp(t)
plot(t, s1, 'b-')
ax1.yaxis.tick_left()
for label in ax1.get_yticklabels():
 label.set_fontsize('medium')
 label.set_color('r')
# turn off the 2nd axes rectangle with frameon kwarg
ax2 = subplot(111, frameon=False)
s2 = sin(2*pi*t)
plot(t, s2, 'r.')
ax2.yaxis.tick_right()
for label in ax1.get_yticklabels():
 label.set_fontsize('medium')
 label.set_color('b')
xlabel('time (s)')
From: Stephen W. <ste...@cs...> - 2004年08月11日 19:24:35
On Wed, 2004年08月11日 at 10:31, Jeffery D. Collins wrote:
> from matplotlib.matlab import ylabel
> =
 =20
>=20
> ylabel('bia [cm]')
What does your .matplotlibrc look like? In particular, do you have
interactive set? I had to change the first line above to 'import *' to
get the show() function. If I change my .matplotlibrc file to
backend: TkAgg
interactive: true
I can do as many ylabel's as I like without difficulty. Fedora Core 1,
latest matplotlib CVS.
--=20
Stephen Walton <ste...@cs...>
Dept. of Physics & Astronomy, Cal State Northridge
From: Paul B. <ba...@st...> - 2004年08月11日 19:01:30
Darren Dale wrote:
> I was thinking about the way the labels are formatted. Some of the 
> numbers I work with are large(10^10) and small (10^-10), and the 
> formatting wasnt quite right. I am running the following as a test:
> 
> mport matplotlib
> from matplotlib.matlab import *
> from numarray import array
> 
> a=array(range(10))*1e6+1e7
> b = array(range(10))*1e-5+1e-4
> plot(a,b)
> 
> in ticker.py, in ScalarFormatter, what is the purpose of this routine?
> 
> # if the value is just a fraction off an int, use the int
> if abs(x-long(x))<0.0001*d:
> if x<=10000: return '%d' % long(x + 0.5)
> else: return '%1.0e'%long(x)
> 
> If commented out, the labels are formatted appropriately as 
> exponentials, otherwise, the level of precision can often not be useful. 
> Also, in the exponential formatting block, might this
> if d < 1e-3: fmt = '%1.3f'
> read this?:
> if d < 1e-2: fmt = '%1.3e'
> 
> One final suggestion, for formatting the exponential component:
> 
> m = self._zerorgx.match(s)
> if m:
> s = m.group(1)
> if m.group(2) is not None:
> ## s += m.group(2)
> s += m.group(2)[:2]+str(int(m.group(2)[2:])) ## my hack 
> to make 3e003 look like 3e3. (Whats the "right way"?)
> s = s.replace('+', '')
> return s
> 
> Darren
This patch has been committed, so exponential values should format correctly.
 -- Paul
-- 
Paul Barrett, PhD Space Telescope Science Institute
Phone: 410-338-4475 ESS/Science Software Branch
FAX: 410-338-4767 Baltimore, MD 21218
From: John H. <jdh...@ac...> - 2004年08月11日 18:56:12
>>>>> "Jeffery" == Jeffery D Collins <jef...@ve...> writes:
 Jeffery> I am using the latest snapshot from the CVS repository
 Jeffery> and am getting a segmentation fault when using ylabel
 Jeffery> with certain strings. Below is a code snippet that
 Jeffery> crashes on the last occurance of ylabel. Does this crash
 Jeffery> for anyone else?
One more thing - there is almost nothing different in CVS than in
0.61.0. Since the CVS mirrors sometimes lag, it would help in
diagnosing this problem if you test with 0.61. I recommend first
removing site-packages/matplotlib and your matplotlib 'build' dir to
get a clean install.
Thanks,
John Hunter
From: John H. <jdh...@ac...> - 2004年08月11日 18:54:24
>>>>> "Jeffery" == Jeffery D Collins <jef...@ve...> writes:
 Jeffery> I am using the latest snapshot from the CVS repository
 Jeffery> and am getting a segmentation fault when using ylabel
 Jeffery> with certain strings. Below is a code snippet that
 Jeffery> crashes on the last occurance of ylabel. Does this crash
 Jeffery> for anyone else?
 Jeffery> from matplotlib.matlab import ylabel ylabel('bia [cm]')
 Jeffery> raw_input('continue') ylabel('Bia [cm]') # seg fault
 Jeffery> raw_input('continue')
Your script is line wrapped in your post, so it is difficult to know
exactly what you mean. The following does not segfault for me
from matplotlib.matlab import ylabel
ylabel('bia [cm]')
raw_input('continue')
ylabel('Bia [cm]') # seg fault
raw_input('continue')
It would be helpful if you narrowed the scope of your problem by using
the Agg backend. My guess is you'll encounter the same problem.
Assuming so, there are two extra things you could do to give more
information
Edit site-packages/matplotlib/backends/backend_agg.py in the function
_get_agg_font, print the font filename you are using. Ie, on or
around line 231 in matplotlib-0.61, add the print line as below
 if font is None:
 fname = fontManager.findfont(prop)
 print 'agg loading', fname
 try: font = FT2Font(str(fname))
Additionally, you may want to set at the top of that file
DEBUG = 1
and edit setup.py and set 
VERBOSE = True
and recompile matplotlib cleanly. To do this, go to the matplotlib
src dir and 'rm -rf build' before reinstalling matplotlib.
Rerun your tests - be prepared for a deluge of messages. 
This should provide some additional helpful information.
You may want to followup to the devel list instead of the users list
Thanks,
John Hunter
 Jeffery> More information: OS: Linux (RH9) backend: TkAgg
 Jeffery> Python 2.3.2 (#1, Oct 22 2003, 19:27:14) [GCC 3.2.2
 Jeffery> 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help",
 Jeffery> "copyright", "credits" or "license" for more information.
 Jeffery> --
 Jeffery> -----------------------------------------------------------------
 Jeffery> Jeffery D. Collins, Ph.D. Vexcel Corp. Sr. Engineer
 Jeffery> 1690 38th St. Voice: (303)583-0228 Boulder, CO 80301
 Jeffery> Fax: (303)583-0246 vexcel.com
 Jeffery> -------------------------------------------------------
 Jeffery> SF.Net email is sponsored by Shop4tech.com-Lowest price
 Jeffery> on Blank Media 100pk Sonic DVD-R 4x for only 29ドル -100pk
 Jeffery> Sonic DVD+R for only 33ドル Save 50% off Retail on Ink &
 Jeffery> Toner - Free Shipping and Free Gift.
 Jeffery> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
 Jeffery> _______________________________________________
 Jeffery> Matplotlib-users mailing list
 Jeffery> Mat...@li...
 Jeffery> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Jeffery D. C. <jef...@ve...> - 2004年08月11日 17:31:47
I am using the latest snapshot from the CVS repository and am getting a 
segmentation fault when using ylabel with certain strings. Below is a 
code snippet that crashes on the last occurance of ylabel. Does this 
crash for anyone else?
from matplotlib.matlab import ylabel
 
ylabel('bia [cm]')
raw_input('continue')
ylabel('Bia [cm]') # seg fault
raw_input('continue')
More information:
OS: Linux (RH9)
backend: TkAgg
Python 2.3.2 (#1, Oct 22 2003, 19:27:14)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
-- 
-----------------------------------------------------------------
Jeffery D. Collins, Ph.D. Vexcel Corp.
Sr. Engineer 1690 38th St.
Voice: (303)583-0228 Boulder, CO 80301
Fax: (303)583-0246 vexcel.com
From: John H. <jdh...@ac...> - 2004年08月11日 17:15:37
>>>>> "Todd" == Todd Miller <jm...@st...> writes:
 Todd> This may be more FUD than fact but... my recollection of
 Todd> this is that different versions of Tcl/Tk are used between
 Todd> Python-2.2 and Python-2.3, I believe 8.3 and 8.4
 Todd> respectively. Our process for creating the windows binaries
 Todd> for maplotlib requires a copy of the Tcl/Tk headers. The
 Todd> last time I tried to make a 2.2 version of matplotlib, I was
 Todd> able to get matplotlib to compile and link using different
 Todd> Tcl/Tk headers (8.3), and matplotlib imported successfully,
 Todd> but it was unstable. So, my impression is that the problem
 Todd> boils down to getting Python-2.2 specific support for Tcl/Tk
 Todd> into win32_static.
Not FUD, fact:-)
With this clarification I was able to get 2.2 compiled properly with
tkagg and the other backends. I uploaded it to the SF site. This is
the Numeric build.
Todd, I don't want to get into a situation where we are building
Numeric + numarray 0.9 + numarray 1.0 cross python 2.2, python2.3 and
python2.4 (that would be 9 win32 builds!) but we may want to consider
doing python2.2 builds for milestone releases, eg every couple/few
months. I uploaded a new win32 static to the sf site which includes
the tcl83 and tcl84 headers and updated setupext.py in CVS to use
them.
JDH
From: Shin <sd...@em...> - 2004年08月11日 15:50:41
As you said, my packages were messed up.
After removing site-package and build, the problem was gone.
I have no idea about what happened, but thanks for your advice.
Daehyok Shin
On Wed, 2004年08月11日 at 09:19, John Hunter wrote:
> That is very bizarre. Take a look at
> site-packages/matplotlib/patches.py - you should have set_antialiased
> defined on line 70 in the Patches class. Rectangle should derive from
> Patches on line 119.
> 
> It looks a little like your build is messed up in some way I don't
> understand. You may want to try removing matplotlib from your
> site-packages dir, removing 'build' from your matplotlib src tree, adn
> doing a clean install.
From: Todd M. <jm...@st...> - 2004年08月11日 13:58:06
On Wed, 2004年08月11日 at 09:07, John Hunter wrote:
> >>>>> "Gary" == Gary Strangman <st...@nm...> writes:
> 
> 
> Gary> I recently found matplotlib and think it's _exactly_ what
> Gary> the python environment needs from the scientific perspective
> Gary> ... interactive plotting as good as (or better than)
> Gary> Matlab's, that also makes it easy for Matlab users to be
> Gary> converted. ;-) I'm very impressed in the
> Gary> effort-to-date. Unfortunately, other software I use forces
> Gary> me to stay with python2.2, and I'm having tremendous trouble
> Gary> building matplotlib for win32. Might someone have a pointer
> Gary> to a self-installing executable for matplotlib compiled
> Gary> against python2.2 that is a more recent version than
> Gary> v0.54.1??
> 
> Gary> Thanks! And cheers to all the developers of this package.
> 
> Hi Gary - thanks for the kind words (and thanks for the stats module
> as well, which I've been using intermittently for years).
> 
> There is a bug in the _tkagg extension in the python2.2 build which
> has never been tracked down and fixed, which is why we stopped
> releasing it. You get a missing DLL error when you try and load it.
> I opened _tkagg.pyd in dependency walker, and the DLL is one of the
> Visual Studio .NET dlls - though sometimes dependency walker fives
> false alarms.
> 
> As I write this, it occurs to me the problem that arose in 2.2 may
> have been coincident in my changing build environments (I don't know
> if Todd experienced a similar problem with his numarray builds with
> tkagg and python2.2, but I think he may have ...).
This may be more FUD than fact but... my recollection of this is that
different versions of Tcl/Tk are used between Python-2.2 and
Python-2.3, I believe 8.3 and 8.4 respectively. Our process for
creating the windows binaries for maplotlib requires a copy of the
Tcl/Tk headers. The last time I tried to make a 2.2 version of
matplotlib, I was able to get matplotlib to compile and link using
different Tcl/Tk headers (8.3), and matplotlib imported successfully, 
but it was unstable. So, my impression is that the problem boils down
to getting Python-2.2 specific support for Tcl/Tk into win32_static. 
Regards,
Todd
From: John H. <jdh...@ac...> - 2004年08月11日 13:48:47
>>>>> "Ryugan" == Ryugan Mizuta <ryu...@sb...> writes:
 Ryugan> I'm a newbie and am trying to create a financial chart
 Ryugan> that converts or plots a tick data to any time frame
 Ryugan> (ex. daily, intraday and etc...). I'm also using data
 Ryugan> that is written in a text file. I only see an example
 Ryugan> that uses Yahoo data.
 Ryugan> Could anybody help me on how I can do this?
The examples finance_work on the web site
http://matplotlib.sourceforge.net/screenshots.html#finance_work2 loads
financial data from a CSV file. It uses a function load_quotes
defined in the helper.py module
 http://matplotlib.sourceforge.net/screenshots/finance_work2.py
 http://matplotlib.sourceforge.net/screenshots/helpers.py
The data files for this example are found in 
 http://matplotlib.sourceforge.net/screenshots/data/
The downside is that this is a fairly sophisticated example that may
not be that easy to parse if you are getting started with
python/matplotlib, so hopefully someone on this list can provide a
simpler one for you.
Hope this helps,
John
From: John H. <jdh...@ac...> - 2004年08月11日 13:43:23
>>>>> "Shin" == Shin <sd...@em...> writes:
 Shin> My first trial produced the following error message. What
 Shin> problem do you think is in my installation? I am using
 Shin> GtkAgg backend for matplotlib 0.6.1 version in Mandrake 10
 Shin> and python 2.3.3. Thanks.
That is very bizarre. Take a look at
site-packages/matplotlib/patches.py - you should have set_antialiased
defined on line 70 in the Patches class. Rectangle should derive from
Patches on line 119.
It looks a little like your build is messed up in some way I don't
understand. You may want to try removing matplotlib from your
site-packages dir, removing 'build' from your matplotlib src tree, adn
doing a clean install.
For the record, I did a clean install of 0.61.0 on a linux machine I
don't normally develop on and ran your example without problems
 >>> from matplotlib.matlab import *
 >>> x=arange(10)
 >>> plot(x)
 [<matplotlib.lines.Line2D instance at 0x40d5e94c>]
With the following in my .matplotlibrc file
backend : TkAgg # the default backend
numerix : Numeric # Numeric or numarray
interactive : True 
toolbar : toolbar2 # None | classic | toolbar2
Let me know what you find.
JDH
 >>>> from matplotlib.matlab import * x=arange(10) plot(x)
 Shin> Traceback (most recent call last): File "<stdin>", line 1,
 Shin> in ? File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
 Shin> line 1176, in plot lines = gca().plot(*args, **kwargs) File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
 Shin> line 762, in gca return
 Shin> get_current_fig_manager().get_current_axis() File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
 Shin> line 251, in get_current_fig_manager gcf() # creates an
 Shin> active figure as a side effect File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
 Shin> line 771, in gcf return figure() File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
 Shin> line 691, in figure figManager = new_figure_manager(num,
 Shin> figsize, dpi, facecolor, edgecolor, frameon) File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py",
 Shin> line 25, in new_figure_manager thisFig = Figure(*args,
 Shin> **kwargs) File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/figure.py",
 Shin> line 52, in __init__ facecolor=facecolor,
 Shin> edgecolor=edgecolor, File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/patches.py",
 Shin> line 130, in __init__ Patch.__init__(self, **kwargs) File
 Shin> "/usr/lib/python2.3/site-packages/matplotlib/patches.py",
 Shin> line 48, in __init__ self.__dict__['set_%s'%abbrev] =
 Shin> getattr(self, 'set_%s'%func) AttributeError: Rectangle
 Shin> instance has no attribute 'set_antialiased'
 Shin> -- Daehyok Shin
 Shin> -------------------------------------------------------
 Shin> SF.Net email is sponsored by Shop4tech.com-Lowest price on
 Shin> Blank Media 100pk Sonic DVD-R 4x for only 29ドル -100pk Sonic
 Shin> DVD+R for only 33ドル Save 50% off Retail on Ink & Toner - Free
 Shin> Shipping and Free Gift.
 Shin> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
 Shin> _______________________________________________
 Shin> Matplotlib-users mailing list
 Shin> Mat...@li...
 Shin> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: John H. <jdh...@ac...> - 2004年08月11日 13:31:21
>>>>> "Gary" == Gary Strangman <st...@nm...> writes:
 Gary> I recently found matplotlib and think it's _exactly_ what
 Gary> the python environment needs from the scientific perspective
 Gary> ... interactive plotting as good as (or better than)
 Gary> Matlab's, that also makes it easy for Matlab users to be
 Gary> converted. ;-) I'm very impressed in the
 Gary> effort-to-date. Unfortunately, other software I use forces
 Gary> me to stay with python2.2, and I'm having tremendous trouble
 Gary> building matplotlib for win32. Might someone have a pointer
 Gary> to a self-installing executable for matplotlib compiled
 Gary> against python2.2 that is a more recent version than
 Gary> v0.54.1??
 Gary> Thanks! And cheers to all the developers of this package.
Hi Gary - thanks for the kind words (and thanks for the stats module
as well, which I've been using intermittently for years).
There is a bug in the _tkagg extension in the python2.2 build which
has never been tracked down and fixed, which is why we stopped
releasing it. You get a missing DLL error when you try and load it.
I opened _tkagg.pyd in dependency walker, and the DLL is one of the
Visual Studio .NET dlls - though sometimes dependency walker fives
false alarms.
As I write this, it occurs to me the problem that arose in 2.2 may
have been coincident in my changing build environments (I don't know
if Todd experienced a similar problem with his numarray builds with
tkagg and python2.2, but I think he may have ...).
The other backends still work fine for python2.2 (GTKAgg, WXAgg,
etc...). I don't know if you can use these, though, since you
specifically mentioned interactivity in your post. I'd be happy to
send this build to you if you like (I built it for 0.61.0 yesterday
after your email).
The other options are
 - I can try and build on my old computer where maybe the problem
 doesn't exist and hence tkagg would work
 - I can try and fix the problem! Clearly the best solution, but I
 don't have any great leads right now.
Are you primarily a numarray or Numeric user?
Cheers,
JDH
From: Ryugan M. <ryu...@sb...> - 2004年08月11日 05:24:37
I'm a newbie and am trying to create a financial chart that converts or =
plots a tick data to any time frame (ex. daily, intraday and etc...). =20
I'm also using data that is written in a text file. I only see an =
example that uses Yahoo data. =20
Could anybody help me on how I can do this?
Thank you.
Ryugan Mizuta
From: Shin <sd...@em...> - 2004年08月11日 04:05:30
My first trial produced the following error message.
What problem do you think is in my installation?
I am using GtkAgg backend for matplotlib 0.6.1 version in Mandrake 10
and python 2.3.3.
Thanks.
>>> from matplotlib.matlab import *
>>> x=arange(10)
>>> plot(x)
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/usr/lib/python2.3/site-packages/matplotlib/matlab.py", line
1176, in plot
 lines = gca().plot(*args, **kwargs)
 File "/usr/lib/python2.3/site-packages/matplotlib/matlab.py", line
762, in gca
 return get_current_fig_manager().get_current_axis()
 File "/usr/lib/python2.3/site-packages/matplotlib/matlab.py", line
251, in get_current_fig_manager
 gcf() # creates an active figure as a side effect
 File "/usr/lib/python2.3/site-packages/matplotlib/matlab.py", line
771, in gcf
 return figure()
 File "/usr/lib/python2.3/site-packages/matplotlib/matlab.py", line
691, in figure
 figManager = new_figure_manager(num, figsize, dpi, facecolor,
edgecolor, frameon)
 File
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py", line 25, in new_figure_manager
 thisFig = Figure(*args, **kwargs)
 File "/usr/lib/python2.3/site-packages/matplotlib/figure.py", line 52,
in __init__
 facecolor=facecolor, edgecolor=edgecolor,
 File "/usr/lib/python2.3/site-packages/matplotlib/patches.py", line
130, in __init__
 Patch.__init__(self, **kwargs)
 File "/usr/lib/python2.3/site-packages/matplotlib/patches.py", line
48, in __init__
 self.__dict__['set_%s'%abbrev] = getattr(self, 'set_%s'%func)
AttributeError: Rectangle instance has no attribute 'set_antialiased'
-- 
Daehyok Shin 

Showing 15 results of 15

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