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) |
|
|
From: guillaume r. <gra...@wy...> - 2009-07-09 08:06:09
|
Hi again.
I found out that removing the resize handler of the wxpanel gives me a
nice animated plot that works as expected (but with no resize :-/)
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(),forward=True)
I took that code from: http://www.scipy.org/Matplotlib_figure_in_a_wx_panel
any hints on what to do from there?
guillaume ranquet wrote:
> 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.
> ----
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
----
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: Jervis W. <jer...@gm...> - 2009-07-09 07:06:51
|
Hi, Could anyone help me with the following problem I am having. http://dpaste.com/64913/ The code listed above should be enough to reproduce the problem. I on using the zoom function from the toolbar, I find that the figure limits are set to a smaller size than the zoom i selected - a kind of 'double zoom'. I was able to track down the problem to backend_bases.py in the matplotlib distribution (current release). Inside this file there is a member called 'release_zoom' there is a section of code that says.. for cur_xypress in self._xypress: lastx, lasty, a, ind, lim, trans = cur_xypress # code a.transData.inverted() # code a.set_xlim((x0, x1)) # etc.. I am finding that there are two items in self._xypress, and that the 'a' in both of them (axes i think) are the same object i.e a1 is a2 == True this means that a.transData.inverted() is called twice on the same axes. The first time through the for loop it gets the limits correct, the second time, they are incorrect because of the second call to inverted. I have implemented a shoddy fix where i check that if the axes is the same as one that is seen before, I just continue. Is anyone else able to see this, or is it just something in the way i've set up my original pasted code? Cheers, Jervis |
|
From: Pau <vim...@go...> - 2009-07-09 06:52:51
|
Hello, any hint about this? If somebody wants to understand better what I mean, my data are here: www.aei.mpg.de/~pau/histo3.dat thanks Pau 2009/7/8 Pau <vim...@go...>: > Hello, > > two days ago Sebastian helped me to finish in a hurry a histogram with bar() > > I would like now to understand how to make the plot with hist() > > First of all, my data (after a massage) looks like : > > ----------------------------------------- > 0.00e+00 1.00e-04 81039 > 1.00e-04 2.00e-04 4472 > 2.00e-04 3.00e-04 2033 > 3.00e-04 4.00e-04 1155 > 4.00e-04 5.00e-04 823 > 5.00e-04 6.00e-04 643 > 6.00e-04 7.00e-04 534 > 7.00e-04 8.00e-04 361 > 8.00e-04 9.00e-04 313 > 9.00e-04 1.00e-03 269 > 1.00e-03 1.10e-03 230 > 1.10e-03 1.20e-03 195 > 1.20e-03 1.30e-03 178 > 1.30e-03 1.40e-03 165 > 1.40e-03 1.50e-03 175 > 1.50e-03 1.60e-03 125 > 1.60e-03 1.70e-03 109 > 1.70e-03 1.80e-03 112 > 1.80e-03 1.90e-03 90 > . > . > . > . > 9.86e-02 9.87e-02 0 > 9.87e-02 9.88e-02 0 > 9.88e-02 9.89e-02 0 > 9.89e-02 9.90e-02 0 > 9.90e-02 9.91e-02 0 > 9.91e-02 9.92e-02 0 > 9.92e-02 9.93e-02 0 > 9.93e-02 9.94e-02 0 > 9.94e-02 9.95e-02 0 > 9.95e-02 9.96e-02 1 > ----------------------------------------- > > The bins are given by the two first number columns. > > For instance, the first bin is from 0.00e+00 to 1.00e-04 and has the > number of data 81039 > > Then I run the following script on them: > > ---------------------------------------------- > #!/usr/bin/env python > > from pylab import * > > H = load ( './histo3.dat') > > h = H[:, 2] # the third column > > n, bins, patches = hist(h, 997, normed=0, log=0, > facecolor='lightblue', alpha=0.75) > > show() > ---------------------------------------------- > > The number 997 is because this is the number of lines I have in my > file (and, thus, the number of bins) > > But the plot is ranging between > > 0 - 90000 --> on x axis > 0 - 1000 --> on y axis > > Notice in the data file that x does not get further than 9.96e-02 > > So the maximum should be 0.0996 and I am getting 90000 > > Why is that? > > What am I doing wrong? > > I have tried to substitute lower-case e with E in the data file but > this did not help > > Any help would be appreciated. > > thanks, > > Pau > |
|
From: Ole S. <ole...@gm...> - 2009-07-09 06:51:38
|
Hi Darren, Darren Dale <dsd...@gm...> writes: > On Thu, Jul 2, 2009 at 9:46 AM, Ole Streicher < > ole...@gm...> wrote: > Run it, move the second diagram below the first, adjust their sizes so > that they take roughly the same size: [...] > and then move the slider between the diagrams and the "Hello World" > label. There is a good chance that the program will segfault. If it does > not, increase the number of points in the diagrams. > I can't reproduce the problem. The diagrams update properly and I don't see a > segfault. Maybe it is an issue that was fixed in Qt-4.5.[1,2] or PyQt-4.5.1. Your bugfix of the resize problem seems to fix that crash, too; at least on SuSE 11.1. However, I will test it on Ubuntu, too. Regards Ole |
|
From: Gökhan S. <gok...@gm...> - 2009-07-09 04:40:53
|
On Wed, Jul 8, 2009 at 9:47 PM, Jae-Joon Lee <lee...@gm...> wrote:
> axes_grid toolkit uses slightly customized version of axes and
> different kind of artists are used to draw ticks and ticklabels, and
> some of the commands from original mpl do not work.
> But not changing fontsize and not showing up gridlines are things that
> should be fixed (I'll work on these in a few days).
> Meanwhile, there are workarounds.
>
> For fontsize, try to directly set the font size of the label object.
> Unfortunately, the padding between the label and the axis get messed
> up, and you need to adjust the padding manually.
>
> host.axis["bottom"].label.set_size(30)
> host.axis["bottom"].LABELPAD=10
>
> For grid, it is a bit more tricky.
>
> host.xaxis.set_visible(True)
> host.yaxis.set_visible(True)
> host.xaxis.get_label().set_visible(False)
> host.yaxis.get_label().set_visible(False)
> for a in host.xaxis.majorTicks + host.yaxis.majorTicks:
> a.gridOn=True
> a.tick1On=False
> a.tick2On=False
> a.label1On=False
> a.label2On=False
>
> I hope these workarounds are useful.
> Thanks for reporting the problems and I;ll try to fix them soon.
> Regards,
>
> -JJ
>
>
>
>
> On Wed, Jul 8, 2009 at 10:00 PM, Gökhan SEVER<gok...@gm...>
> wrote:
> > Hello,
> >
> > I am using axes_grid toolkit to create multiple axes. The labels' colors
> are
> > nicely being updated, however size or fontsize has no effect on the
> > resulting figure :( Are they functional, or is it something wrong with my
> > implementation? Oh also I couldn't make the grids switched on my figures.
> >
> > Here is the snippet that I use:
> >
> > fig = plt.figure(1)
> > host = SubplotHost(fig, 111)
> > fig.add_subplot(host)
> > par = host.twinx()
> > host.set_xlabel("Time [sfm]", size=50)
> > host.set_ylabel("DMT CCN Concentration [#/cm^3]", fontsize=20)
> > par.set_ylabel("Supersaturation [%]", fontsize=20)
> >
> > p1, = host.plot(Time, dccnConc, label="dccnConc")
> > p2, = host.plot(Time, dccnConAmb, label="dccnConAmb")
> > p3, = host.plot(Time, dccnConSTP, label="dccnConSTP")
> > p4, = par.plot(Time, dccnSS, label="dccnSS")
> > p5, = par.plot(Time, dccnSS_Amb, label="dccnSS_Amb")
> >
> > host.axis["left"].label.set_color(p1.get_color())
> > par.axis["right"].label.set_color(p5.get_color())
> >
> > host.axis["left"].label.set_label(p1.get_label())
> > host.legend()
> > plt.show()
> >
> >
> > These are my current system properties:
> >
> > Linux 2.6.27.19-170.2.35.fc10.i686.PAE (Fedora 11)
> > Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
> > IPython 0.10.bzr.r1174 (with --pylab)
> > and a very recent Matplotlib svn version.
> >
> > Thanks.
> >
> > --
> > Gökhan
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
Jae-Joon,
Your suggested work-arounds worked like a charming. See my before and after
plots at the given links:
http://img34.imageshack.us/img34/3899/dccnplot1.png
http://img27.imageshack.us/img27/6274/dccnplot2.png
I have one tiny question left working on these figures; that is: how to make
mathtext font and a regular label font at the same size?
For instance:
host.set_ylabel(r"DMT CCN Concentration [ #/$cm^3$]")
but as it is seen from the figure they look a bit weird.
Thank you.
PS: I am glad I could add a little bit into this great piece of
visualization toolkit.
--
Gökhan
|
|
From: Jae-Joon L. <lee...@gm...> - 2009-07-09 03:02:55
|
Arrrg, it depends on other module in axes_grid toolkit. So, you need svn version of mpl. However, It is possible to specify the location of the axes in normalized axes coordinate. http://thread.gmane.org/gmane.comp.python.matplotlib.general/16373 -JJ On Wed, Jul 8, 2009 at 10:57 PM, Jae-Joon Lee<lee...@gm...> wrote: > If you use the svn version of matplotlib, you may use axes_grid toolkit. > > http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#insetlocator > > I think the required inset_locator module actually does not depend on > other modules in axes_grid, so if you're not using svn, you may just > download inset_locator.py and use it. > But still, you need to have 0.98.5.3 installed. > > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/mpl_toolkits/axes_grid/inset_locator.py?view=markup > > -JJ > > > On Wed, Jul 8, 2009 at 6:24 AM, Robin<ro...@gm...> wrote: >> 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 >> >> ------------------------------------------------------------------------------ >> 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 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > |
|
From: Jae-Joon L. <lee...@gm...> - 2009-07-09 02:58:02
|
If you use the svn version of matplotlib, you may use axes_grid toolkit. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#insetlocator I think the required inset_locator module actually does not depend on other modules in axes_grid, so if you're not using svn, you may just download inset_locator.py and use it. But still, you need to have 0.98.5.3 installed. http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/mpl_toolkits/axes_grid/inset_locator.py?view=markup -JJ On Wed, Jul 8, 2009 at 6:24 AM, Robin<ro...@gm...> wrote: > 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 > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Jae-Joon L. <lee...@gm...> - 2009-07-09 02:47:39
|
axes_grid toolkit uses slightly customized version of axes and
different kind of artists are used to draw ticks and ticklabels, and
some of the commands from original mpl do not work.
But not changing fontsize and not showing up gridlines are things that
should be fixed (I'll work on these in a few days).
Meanwhile, there are workarounds.
For fontsize, try to directly set the font size of the label object.
Unfortunately, the padding between the label and the axis get messed
up, and you need to adjust the padding manually.
host.axis["bottom"].label.set_size(30)
host.axis["bottom"].LABELPAD=10
For grid, it is a bit more tricky.
host.xaxis.set_visible(True)
host.yaxis.set_visible(True)
host.xaxis.get_label().set_visible(False)
host.yaxis.get_label().set_visible(False)
for a in host.xaxis.majorTicks + host.yaxis.majorTicks:
a.gridOn=True
a.tick1On=False
a.tick2On=False
a.label1On=False
a.label2On=False
I hope these workarounds are useful.
Thanks for reporting the problems and I;ll try to fix them soon.
Regards,
-JJ
On Wed, Jul 8, 2009 at 10:00 PM, Gökhan SEVER<gok...@gm...> wrote:
> Hello,
>
> I am using axes_grid toolkit to create multiple axes. The labels' colors are
> nicely being updated, however size or fontsize has no effect on the
> resulting figure :( Are they functional, or is it something wrong with my
> implementation? Oh also I couldn't make the grids switched on my figures.
>
> Here is the snippet that I use:
>
> fig = plt.figure(1)
> host = SubplotHost(fig, 111)
> fig.add_subplot(host)
> par = host.twinx()
> host.set_xlabel("Time [sfm]", size=50)
> host.set_ylabel("DMT CCN Concentration [#/cm^3]", fontsize=20)
> par.set_ylabel("Supersaturation [%]", fontsize=20)
>
> p1, = host.plot(Time, dccnConc, label="dccnConc")
> p2, = host.plot(Time, dccnConAmb, label="dccnConAmb")
> p3, = host.plot(Time, dccnConSTP, label="dccnConSTP")
> p4, = par.plot(Time, dccnSS, label="dccnSS")
> p5, = par.plot(Time, dccnSS_Amb, label="dccnSS_Amb")
>
> host.axis["left"].label.set_color(p1.get_color())
> par.axis["right"].label.set_color(p5.get_color())
>
> host.axis["left"].label.set_label(p1.get_label())
> host.legend()
> plt.show()
>
>
> These are my current system properties:
>
> Linux 2.6.27.19-170.2.35.fc10.i686.PAE (Fedora 11)
> Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
> IPython 0.10.bzr.r1174 (with --pylab)
> and a very recent Matplotlib svn version.
>
> Thanks.
>
> --
> Gökhan
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: Gökhan S. <gok...@gm...> - 2009-07-09 02:01:11
|
Hello,
I am using axes_grid toolkit to create multiple axes. The labels' colors are
nicely being updated, however size or fontsize has no effect on the
resulting figure :( Are they functional, or is it something wrong with my
implementation? Oh also I couldn't make the grids switched on my figures.
Here is the snippet that I use:
fig = plt.figure(1)
host = SubplotHost(fig, 111)
fig.add_subplot(host)
par = host.twinx()
host.set_xlabel("Time [sfm]", size=50)
host.set_ylabel("DMT CCN Concentration [#/cm^3]", fontsize=20)
par.set_ylabel("Supersaturation [%]", fontsize=20)
p1, = host.plot(Time, dccnConc, label="dccnConc")
p2, = host.plot(Time, dccnConAmb, label="dccnConAmb")
p3, = host.plot(Time, dccnConSTP, label="dccnConSTP")
p4, = par.plot(Time, dccnSS, label="dccnSS")
p5, = par.plot(Time, dccnSS_Amb, label="dccnSS_Amb")
host.axis["left"].label.set_color(p1.get_color())
par.axis["right"].label.set_color(p5.get_color())
host.axis["left"].label.set_label(p1.get_label())
host.legend()
plt.show()
These are my current system properties:
Linux 2.6.27.19-170.2.35.fc10.i686.PAE (Fedora 11)
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
IPython 0.10.bzr.r1174 (with --pylab)
and a very recent Matplotlib svn version.
Thanks.
--
Gökhan
|
|
From: Ondrej C. <on...@ce...> - 2009-07-09 01:55:23
|
Hi, I just wanted to share a simple code that I wrote: http://certik.github.com/visit_writer/ which uses Visit's VTK writer (written in C, wrapped in Python). I wrote a pcolor() function, that works just like the one in matplotlib, only it produces a vtk file (resp. data that you then pass to the vtk writer). See the pictures and demos on the webpage above. With this, it's very easy to write VTK files, no need to fiddle with the ASCII format --- btw, the module can produces a binary VTK file too, so it really saved me lots of troubles. Ondrej |