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

Showing 14 results of 14

From: Paul S. <ps...@so...> - 2009年07月08日 23:41:34
Thank you Russell. I did post to the wrong group and I apologize for the inconvenience. I'll be posting there.
Paul Simon
---
Your python is missing the _tkinter library, so it cannot use Tkinter.
Normally if you build from source then all you have to do is build and 
install tcl and tk first, then build python and it should find the 
tcl/tk and build _tkinter (the library that links to Tcl/Tk and allows 
Tkinter to work).
If you installed from an RPM or some such then perhaps you need to get 
some additional RPMs.
If you have additional questions about installing python with Tkinter 
support I suggest you post to the python-tkinter mailing list 
(gmane.comp.python.tkinter on gmane).
-- Russell
In article <7483F0868D484AE6A0A7DDB5BFBFDFF5@newhome>,
 "Paul Simon" <ps...@so...> wrote:
> I have the "tkinter" problem and need some assistance to straighten it out. 
> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in "step 
> 1" and cannot import "_tkinter." I do not have that file on my computer, but 
> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the 
> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
> This matplotlib and python stuff is great, but the documentation frequently 
> feels like it is just a bit out of my grasp. I realize that all of this is 
> free but I understand the instructions on the web page to repair only to the 
> point of confusion. I'm not an expert. How do I modify my python 
> configuration? Is there a file that needs to be edited? Which setup.py file 
> do I use? Make? or python setup.py build and python setup.py install?
> Thanks. I appreciate your help.
> Paul Simon 
From: Darren D. <dsd...@gm...> - 2009年07月08日 21:20:28
On Wed, Jul 8, 2009 at 3:10 AM, Ole Streicher <ole...@gm...>wrote:
> Hi again,
>
> Ole Streicher <ole...@gm...> writes:
> > could anyone reproduce this problem and/or has a solution for it? Is
> > there anything wrong with my code?
>
> after some discussion on the PyQt mailing list, I found the cause of the
> problem:
>
> In matplotlib.FigureCanvasQTAgg, the following piece of code is called
> on a resizeEvent:
>
> def draw( self ):
>
> # ... some internal code
>
> # Added following line to improve realtime pan/zoom on windows:
> QtGui.qApp.processEvents()
>
> This makes the problem clear:
> - if we resize the window quickly, several resizeEvents are created and
> are in the event queue of Qt
> - the first one gets processed by the QVBoxLayout which starts the
> processing in its first (matplotlib) widget.
> - the matplotlib widget does what it should and at some point calls
> matplotlib.FigureCanvasQTAgg.draw(self).
> - this starts the processing of the next event in the queue which is
> the next (2nd) resize event. BUT: we are still in the processing of
> the first event!!!
> - the 2nd event goes to the QVBoxLayout, from there to the matlotlib
> widget (eventually starting some recursive behaviour here)
> - if the 2nd event is finished, QVBoxLayout sends it to its other widget
> (the scrollbar). The scrollbar is resized according to the *2nd event*.
> - if the processing of the 2nd event was finished and no more events are
> in the queue, the matplotlib.FigureCanvasQTAgg.draw() finishes
> - at the end, this will finish the processing of the first resize event
> in the matplotlib widget and start the *first resize event* for the
> scrollbar
>
> This is exactly the behaviour that I observed. It is caused by the
> QtGui.qApp.processEvents() call in the draw() function.
>
> So, I think this is clearly a bug in matplotlib:
> QtGui.qApp.processEvents() should not be called while processing another
> event.
>
Thank you Ole for tracking this down. I have submitted a change in svn 7250
which I think fixes this problem. However, the offending line was originally
added to improve performance of panning and zooming on windows. I have
tested the changes on 64-bit windows vista, and panning and zooming appear
to be responsive, but I would appreciate it if other windows users would
test as well. Just save the attached files into your
site-packages/matplotlib/backends directory to test the new code.
Thanks,
Darren
From: T J <tj...@gm...> - 2009年07月08日 20:49:55
Are matplotlib backends pluggable? That is, can package X provide an
experimental backend and tell matplotlib to use it? If so, how?
From: Massimo Di S. <mas...@ya...> - 2009年07月08日 18:01:45
Hi Jef,
please apologize me for the delay
i had days without internet connection :-/
sorry if i gived you a bad explanation ...
for sky plot i means plot like :
http://www.tpub.com/content/armyengineer/en0593a/en0593a0209.htm
the data i'm receiving from the gps device are :
PRN = satellite ID
EL = ELevation (integer 0-90)
AZ = Azimuth (integer 0-359)
Ss = Signal-Strenghts (decibels)
Used = (1,0)
for each satellite visible at the moment,
i receive data for each second.
i'm printing the data in an html table
http://img43.imageshack.us/i/immagine3ftd.png/
but i tring to learn how to use matplotlib to display the data in a 
"sky-plot" (i don't know the real name of this polar-diagram)
i gived a look at matplotlib tutorial pages .. and i find really 
usefull the "web-plot" example
 ... i'll follow that way
but the real problem is :
 i don't know the math formulae and matplotlib syntax needed to 
create a such kind of plot.
thanks for any suggestion!
regards,
Massimo.
Il giorno 03/lug/09, alle ore 03:34, Jeff Whitaker ha scritto:
> Massimo Di Stefano wrote:
>> Hi All,
>>
>>
>> i'm starting to learn matplotlib,
>> for my study i need to parse the nmea sentence from a gps
>> and plot a "sky graphic" to plot satellite visibility.
>>
>> (i tried to write code from scratch ... it works but my teacher 
>> suggest me to not reinvent the well, so, to have a good nema 
>> parser, i installed gpsd ... it has in the source code a nice 
>> python code that allow me to retrieve satellite constallation 
>> iformation).
>>
>> now i need to learn how to produce a sky plot,
>> have you any suggestion on how to produce such kind of graphic ?
>>
>
> Massimo: I've no idea what a "sky plot" is. Can you point us to an 
> example?
>
> -Jeff
>> thanks to all for any suggestion!
>>
>> Massimo.
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
From: Russell E. O. <rowen@u.washington.edu> - 2009年07月08日 17:21:20
Your python is missing the _tkinter library, so it cannot use Tkinter.
Normally if you build from source then all you have to do is build and 
install tcl and tk first, then build python and it should find the 
tcl/tk and build _tkinter (the library that links to Tcl/Tk and allows 
Tkinter to work).
If you installed from an RPM or some such then perhaps you need to get 
some additional RPMs.
If you have additional questions about installing python with Tkinter 
support I suggest you post to the python-tkinter mailing list 
(gmane.comp.python.tkinter on gmane).
-- Russell
In article <7483F0868D484AE6A0A7DDB5BFBFDFF5@newhome>,
 "Paul Simon" <ps...@so...> wrote:
> I have the "tkinter" problem and need some assistance to straighten it out. 
> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in "step 
> 1" and cannot import "_tkinter." I do not have that file on my computer, but 
> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the 
> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
> This matplotlib and python stuff is great, but the documentation frequently 
> feels like it is just a bit out of my grasp. I realize that all of this is 
> free but I understand the instructions on the web page to repair only to the 
> point of confusion. I'm not an expert. How do I modify my python 
> configuration? Is there a file that needs to be edited? Which setup.py file 
> do I use? Make? or python setup.py build and python setup.py install?
> Thanks. I appreciate your help.
> Paul Simon 
> 
> 
> 
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge 
> This is your chance to win up to 100,000ドル in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize 
> details at: http://p.sf.net/sfu/Challenge
From: Robin <ro...@gm...> - 2009年07月08日 17:14:09
Again, apologies if this is an obvious question but I couldn't find the answer.
With a lw=1 dotted (:) line the dots are square and it looks very
nice. But when I put lw up say to 2 or 3, the dots become rectangular,
which looks a bit odd, particularly at points where the underlying
graph curves sharply compared to the spacing of the dots.
Is there anyway to keep the dots square (ie as lw=2 for both
dimensions) instead of rectangular?
Cheers
Robin
From: Matthias M. <Mat...@gm...> - 2009年07月08日 15:16:12
Hi Robin,
What version of matplotlib do you use?
For me the following works:
ax.set_position(ax.get_position())
The object returned by get_position is "A mutable bounding box.", which is 
also supported in set_position. Nevertheless set_position supports lists 
with '[left, bottom, width, height]', too. E.g.
ax.set_position([0.2, .4, 0.4, .5])
best regards Matthias
On Wednesday 08 July 2009 16:10:37 Robin wrote:
> Hi,
>
> After quite a bit of trial and error I realised that ax.get_position()
> is returning numbers in the form a Bbox which are very different to
> the numbers you need for ax.set_position().
>
> Often I want to use the subplot positioning first, then get the
> positions that sets up for some manual tweaking. Is there a way to
> convert the output of get_position into the same form as for
> set_position?
>
> Cheers
>
> Robin
From: Alastair B. <a.g...@du...> - 2009年07月08日 14:51:34
Hi,
I'm running the example code dynamic_image_gtkagg.py, but am only getting 
about 6 FPS. Does anyone know how to speed this up (eg by a factor of 10 
or so!)?
The call to manager.canvas.draw() it taking the bulk of the time.
Thanks,
agb.
From: Robin <ro...@gm...> - 2009年07月08日 14:34:52
Hi,
After quite a bit of trial and error I realised that ax.get_position()
is returning numbers in the form a Bbox which are very different to
the numbers you need for ax.set_position().
Often I want to use the subplot positioning first, then get the
positions that sets up for some manual tweaking. Is there a way to
convert the output of get_position into the same form as for
set_position?
Cheers
Robin
From: Robin <ro...@gm...> - 2009年07月08日 10:24:13
Hi,
I'm sure its a bit lazy to ask but I can't think of the right keywords
to search for...
I would like to produce a plot with a zoomed in box detail section.
What I have in mind is a plot of an exponentially decaying line with
some fine detail, so I would like the main plot to show the scale of
the exponential decay, but then in the large space in the
center/top/right of the plot I would like to have a zoomed in box
showing more detail of a particular bit to show the level of the noise
etc.
No idea where to start with acheiving this so I thought I'd ask if
anyone has done anything similar or if there would be any examples on
the web site - or whether it would be easier just to produce 2 plots
at different scales then chop them together in a graphics editing
program. (I thought of inkscape, but in the past when I've tried to
edit matplotlib vector output it messed up the fonts - or at least
changed them - so I'm not sure if theres a better program, or some
trick to using it).
Cheers
Robin
From: guillaume r. <gra...@wy...> - 2009年07月08日 09:19:58
Hi list (yes, me, again :D)
I'm having difficulties with matplotlib svn (rev 7249) and animations.
I'm a bit lost on what I have to do to get my animation running smoothly?
I had various attempts, It seems that the best result I can have is by
totally skipping the canvas.restore_region(self.background) shown in the
examples : the resizing of the window make the plot look terribly broken
sorry for this question that seems well covered by documentation and
examples :S
I'm attaching a sample code that reproduces the behavior of my app, It's
a bit long but I hope there's some good things in it that can be usefull
to others :)
===code snippet===
import wxversion
wxversion.ensureMinimal('2.8')
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as
FigureCanvas
import wx
import wx.aui
from matplotlib.figure import Figure
import sys
import getopt
from threading import *
from itertools import izip
import time
class myplotData(Figure):
 def __init__(self,name,width=5,height=4,dpi=60,x_axis=None):
 Figure.__init__(self,figsize=(width, height),dpi=dpi)
 self.name = name
 self.ax = self.add_subplot(111,label=name,animated=True)
 self.bg = None
 self.mdirty = False
 def refreshbg(self):
 self.bg = self.canvas.copy_from_bbox(self.ax.bbox)
 def feed(self,n):
 timestamp = n[0]
 self.n = 0
 if self.bg == None:
 self.canvas = self.ax.figure.canvas
 self.canvas.draw()
 self.bg = self.canvas.copy_from_bbox(self.ax.bbox)
 for xs in n[1:]:
 self.ax.plot([timestamp],[xs],animated=True)
 return
 #self.canvas.restore_region(self.bg)
 mylines = self.ax.get_lines()
 for xs,line in izip(n[1:],mylines):
 x,y = line.get_data()
 x = np.concatenate((x,[timestamp]))
 y = np.concatenate((y,[xs]))
 line.set_data([x,y])
 self.ax.set_xlim(xmax=timestamp)
 curyminlim,curymaxlim = self.ax.get_ylim()
self.ax.set_ylim(ymin=min(xs,curyminlim),ymax=max(xs,curymaxlim))
 self.ax.draw_artist(line)
 self.mdirty = True
 wx.WakeUpIdle()
 def blit(self):
 if self.mdirty:
 self.mdirty = False
 self.canvas.blit(self.ax.get_figure().bbox)
class CanvasPanel(wx.Panel):
 def __init__(self,name,callback=None,parent=None):
 wx.Panel.__init__(self, parent)
 self.SetSize((120, 80))
 self.figure = myplotData(name)
 self.canvas = FigureCanvas(self,-1,self.figure)
 self.parent = parent
 self.callback = callback
 color = (255,255,255)
 self.SetColor(color)
 self._SetSize()
 self._resizeflag = False
 self.Bind(wx.EVT_IDLE, self._onIdle)
 self.Bind(wx.EVT_SIZE, self._onSize)
 def SetColor(self,rgbtuple=None):
 """Set figure and canvas colours to be the same."""
 if rgbtuple is None:
 rgbtuple =
wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE).Get()
 clr = [c/255. for c in rgbtuple]
 self.figure.set_facecolor(clr)
 self.figure.set_edgecolor(clr)
 self.canvas.SetBackgroundColour(wx.Colour(*rgbtuple))
 def _onSize(self,event):
 self._resizeflag = True
 def _onIdle(self,evt):
 if self._resizeflag:
 self._resizeflag = False
 self._SetSize()
 self.figure.blit()
 def _SetSize(self):
 pixels = tuple(self.parent.GetClientSize())
 self.SetSize(pixels)
 self.canvas.SetSize(pixels)
 self.figure.set_size_inches(float(pixels[0])/self.figure.get_dpi(),
 float(pixels[1])/self.figure.get_dpi())
 #self.figure.refreshbg()
 def process(self,data):
 if self.callback != None:
 x = self.callback(data)
 self.figure.feed(x)
 else:
 self.figure.feed(data)
# Define notification event for thread notifications
EVT_RESULT_ID = wx.NewId()
def EVT_RESULT(win, func):
 """Define Result Event."""
 win.Connect(-1, -1, EVT_RESULT_ID, func)
class ResultEvent(wx.PyEvent):
 """Simple event to carry arbitrary result data."""
 def __init__(self, data):
 """Init Result Event."""
 wx.PyEvent.__init__(self)
 self.SetEventType(EVT_RESULT_ID)
 self.data = data
class ParserThread(Thread):
 def __init__(self,source,notify_window):
 Thread.__init__(self)
 self._notify_window = notify_window
 self.data = np.arange(0,2*np.pi,0.01)
 self.n = 0
 self.round = 0
 self.start()
 def run(self):
 while(1):
 mbuff = {}
 mbuff['name'] = "My Sin Plot"
 mbuff['x'] = self.data[self.n] + self.round*2*np.pi
 mbuff['y1'] = np.sin(mbuff['x'])
 mbuff['y2'] = np.sin(mbuff['x'] + np.pi/2)
 self.n+=1
 if self.n == len(self.data):
 self.n = 0
 self.round += 1
 wx.PostEvent(self._notify_window, ResultEvent(('test',[mbuff])))
 time.sleep(.1)
def mycback(data):
 return data['x'],data['y1'],data['y2']
class MyApp(wx.Frame):
 def __init__(self,parent=None,
id=wx.ID_ANY,pos=wx.DefaultPosition,size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE):
 wx.Frame.__init__(self, parent)
 self.bestsize = (120,75)
 self.SetSize(self.GetBestSize())
 self.panel = wx.Panel(self,wx.ID_ANY)
 self.panel.nb = wx.aui.AuiNotebook(self.panel)
 self.label = wx.StaticText(self.panel.nb,wx.ID_ANY,"\n\n\n\naaa\n")
 self.panel.nb.AddPage(self.label, "txt")
 sizer = wx.BoxSizer()
 sizer.Add(self.panel.nb, 1, wx.EXPAND)
 self.panel.SetSizer(sizer)
 self.plotlist = {}
 self.Fit()
 EVT_RESULT(self,self.OnResult)
 self.worker = ParserThread(5758,self)
 def OnResult(self,event):
 tag,mbuff = event.data
 if tag == -1:
 return
 for buff in mbuff:
 if not self.plotlist.has_key(buff['name']):
 cback = mycback
 page = CanvasPanel(buff['name'],mycback,self.panel.nb)
 self.panel.nb.AddPage(page,buff['name'])
 self.plotlist[buff['name']] = page
 myPlot = self.plotlist[buff['name']]
 myPlot.process(buff)
def main(argv=None):
 if argv != None:
 sys.argv = argv
 app = wx.App()
 frame = MyApp()
 frame.Show()
 app.MainLoop()
if __name__ == "__main__":
 main()
===code snippet===
----
This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. 
Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie.
----
From: Ole S. <ole...@gm...> - 2009年07月08日 07:10:45
Hi again,
Ole Streicher <ole...@gm...> writes:
> could anyone reproduce this problem and/or has a solution for it? Is
> there anything wrong with my code?
after some discussion on the PyQt mailing list, I found the cause of the
problem:
In matplotlib.FigureCanvasQTAgg, the following piece of code is called
on a resizeEvent:
def draw( self ):
 # ... some internal code
 # Added following line to improve realtime pan/zoom on windows:
 QtGui.qApp.processEvents()
This makes the problem clear:
- if we resize the window quickly, several resizeEvents are created and
 are in the event queue of Qt
- the first one gets processed by the QVBoxLayout which starts the
 processing in its first (matplotlib) widget.
- the matplotlib widget does what it should and at some point calls 
 matplotlib.FigureCanvasQTAgg.draw(self).
 - this starts the processing of the next event in the queue which is
 the next (2nd) resize event. BUT: we are still in the processing of 
 the first event!!!
 - the 2nd event goes to the QVBoxLayout, from there to the matlotlib
 widget (eventually starting some recursive behaviour here)
 - if the 2nd event is finished, QVBoxLayout sends it to its other widget
 (the scrollbar). The scrollbar is resized according to the *2nd event*.
- if the processing of the 2nd event was finished and no more events are 
 in the queue, the matplotlib.FigureCanvasQTAgg.draw() finishes
- at the end, this will finish the processing of the first resize event 
 in the matplotlib widget and start the *first resize event* for the
 scrollbar
This is exactly the behaviour that I observed. It is caused by the
QtGui.qApp.processEvents() call in the draw() function.
So, I think this is clearly a bug in matplotlib:
QtGui.qApp.processEvents() should not be called while processing another
event.
Best regards
Ole
From: Paul S. <ps...@so...> - 2009年07月08日 06:54:56
I have the "tkinter" problem and need some assistance to straighten it out. 
>From the web page "http://wiki.python.org/moin/TkInter" I tested as in "step 
1" and cannot import "_tkinter." I do not have that file on my computer, but 
do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the 
directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
This matplotlib and python stuff is great, but the documentation frequently 
feels like it is just a bit out of my grasp. I realize that all of this is 
free but I understand the instructions on the web page to repair only to the 
point of confusion. I'm not an expert. How do I modify my python 
configuration? Is there a file that needs to be edited? Which setup.py file 
do I use? Make? or python setup.py build and python setup.py install?
Thanks. I appreciate your help.
Paul Simon 
From: Jeff W. <js...@fa...> - 2009年07月08日 05:21:00
Mauro Cavalcanti wrote:
> Dear Jeff,
>
> Thanks for your fast reply. No problem with manually installing the
> Basemap data files -- indeed, this is just what I do intend in order
> to create a frozen application. But other than setting up the
> BASEMAPDATA environment variable, is there any way to tell an
> application to look for the data in a specific directory?
>
> 
No.
-Jeff
> Best regards,
>
> 2009年7月7日 Jeff Whitaker <js...@fa...>:
> 
>> Mauro Cavalcanti wrote:
>> 
>>> Dear Jeff & ALL,
>>>
>>> In trying to freeze my app using bb-freeze
>>> (http://pypi.python.org/pypi/bbfreeze/), I stumbled upon a problem:
>>> the app is correctly freezed, but it then looks for the Basemap
>>> datafiles and since cannot find them, fails to start (with a message
>>> complaining that the above mentioned files are missing). So, my
>>> question is: can Basemap data files be installed in a directory other
>>> than the default one? And if so, how to instruct a program to look for
>>> them in another location?
>>>
>>> Thanks in advance for any assistance you can provide.
>>>
>>> Best regards,
>>>
>>>
>>> 
>> Mauro: If you set the env var BASEMAPDATA, it will look for the basemap
>> data files there. There is no way supported way to install the files in a
>> different directory using setup.py, so if you want them somewhere other than
>> the default location you'll have to install them there manually.
>>
>> -Jeff
>>
>> --
>> Jeffrey S. Whitaker Phone : (303)497-6313
>> Meteorologist FAX : (303)497-6449
>> NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
>> 325 Broadway Office : Skaggs Research Cntr 1D-113
>> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>>
>>
>> 
>
>
>
> 

Showing 14 results of 14

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