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
(7) |
2
(8) |
|
3
(3) |
4
(5) |
5
(2) |
6
(3) |
7
(4) |
8
(11) |
9
(4) |
|
10
|
11
(8) |
12
(10) |
13
(16) |
14
(14) |
15
(13) |
16
(1) |
|
17
|
18
(8) |
19
(6) |
20
(13) |
21
(15) |
22
(5) |
23
(13) |
|
24
(2) |
25
(4) |
26
(1) |
27
(4) |
28
(8) |
29
(11) |
30
(5) |
|
31
(3) |
|
|
|
|
|
|
|
From: Benjamin R. <ben...@ou...> - 2011-07-11 20:12:27
|
On Mon, Jun 20, 2011 at 8:13 PM, kafooster <dmo...@gm...> wrote: > > Hello, > > I am trying to display an array with imshow(), however I want to 'turn off' > display of axes, numbers, and all that extra stuff which comes with it. I > want only my array(grayscale image) to be shown > > ########################### > > import wx > import matplotlib > matplotlib.use( 'WXAgg' ) > from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg > from matplotlib.figure import Figure > > class Frame1(wx.Frame): > def __init__(self, parent): > wx.Frame.__init__(self,None) > self.panel1 = wx.Panel(self) > self.Add_MPL_Plot() > > def Add_MPL_Plot(self): > figure = Figure(None, 80) > canvas = FigureCanvasWxAgg(self.panel1, -1, figure) > canvas.SetSize(wx.Size(300,300)) > subplot = figure.add_subplot(111) > subplot.imshow(here comes my array) # i did not included it to code > for simplicity > > if __name__ == '__main__': > app = wx.PySimpleApp() > frame = Frame1(None) > frame.Show() > > app.MainLoop() > > ######################### > > is there a way to do it? > > Sorry for the long delay in responding. Yes, you can call: subplot.set_axis_off() subplot.set_frame_on(False) to turn all of that "stuff" off. Although, you will still have a border around it. To prevent that, then you will have to create the axes object directly and set its rect kwarg to [0, 0, 1, 1]. > > another thing, is it possible to open .png images this way? (since it is > possible to save stuff plotted with imshow to .png) > Yeah, there is a imread() function: http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=imread#matplotlib.pyplot.imread I hope this helps! Ben Root |
|
From: Nader A <aen...@ya...> - 2011-07-11 18:36:54
|
Thanks Ian... The tricontourf worked perfectly. I was able to manipulate it further for my needs, but your sample code saved me... Best regards, Nader Abedrabbo Try tricontourf; I've attached an example. Most of the example code is manipulating your input data and calculating the connectivity of your grid. I hope this helps, Ian Thomas -- View this message in context: http://old.nabble.com/Change-color-for-fill_between-to-contour-plot-tp32023678p32040130.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: bhargav v. <coo...@gm...> - 2011-07-11 17:13:04
|
Hello all,
I need help to have customize tick labels using axis artist.
My problem is to create a grid representation in polar co-ordinates (see fig) with r = logspace(log(1),log(120),128)
and theta = linspace(0.17,2.97,64) # in radians
I managed to to create the proper gridlines. But unfortunately I have to remove the tick labels as the way I describe the grid locator they crowd the axis.
I would like to choose only certain points on the axis and label them as the plot would look nice.
Regards
Bhargav Vaidya.
Here is my code modified to my need from already existing code found in the web :
from matplotlib.transforms import Affine2D
import mpl_toolkits.axisartist.floating_axes as floating_axes
import numpy as np
import mpl_toolkits.axisartist.angle_helper as angle_helper
from matplotlib.projections import PolarAxes
from mpl_toolkits.axisartist.grid_finder import FixedLocator, MaxNLocator, \
DictFormatter
def setup_axes2(fig, rect):
tr = PolarAxes.PolarTransform()
pi = np.pi
rad = np.logspace(np.log(1.),np.log(120.),128) # Radial
theta = np.linspace(0.17,2.97,64) # Theta Co-ordinates
angle_ticks = [(0, r"$\frac{1}{2}\pi$"),
(.25*pi, r"$\frac{1}{4}\pi$"),
(.5*pi, r"$0$"),
(-.25*pi, r"$\frac{3}{4}\pi$"),
(-0.5*pi, r"$\pi$")]
grid_locator1 = FixedLocator([j-0.5*pi for j in theta])
#grid_locator1 = FixedLocator([v for v, s in angle_ticks])
grid_locator2 = FixedLocator([i for i in rad])
grid_helper = floating_axes.GridHelperCurveLinear(tr,
extremes=(.5*pi-0.17, -.5*pi+0.17, 120, 1),
grid_locator1=grid_locator1,
grid_locator2=grid_locator2,
tick_formatter1=None,
tick_formatter2=None,
)
ax1 = floating_axes.FloatingSubplot(fig, rect, grid_helper=grid_helper)
fig.add_subplot(ax1)
# create a parasite axes whose transData in RA, cz
aux_ax = ax1.get_aux_axes(tr)
aux_ax.patch = ax1.patch # for aux_ax to have a clip path as in ax
ax1.patch.zorder=0.9 # but this has a side effect that the patch is
# drawn twice, and possibly over some other
# artists. So, we decrease the zorder a bit to
# prevent this.
return ax1, aux_ax
if 1:
import matplotlib.ticker as mpltick
import matplotlib.pyplot as plt
fig = plt.figure(1, figsize=(10, 10))
ax2, aux_ax2 = setup_axes2(fig, 111)
ax2.axis["left"].major_ticklabels.set_visible(False)
ax2.axis["bottom"].major_ticklabels.set_visible(False)
ax2.grid(color='k',linestyle='-',linewidth=0.5)
plt.show()
Here is the eps file
|
|
From: Paul I. <piv...@gm...> - 2011-07-11 16:39:24
|
Sebastian Berg, on 2011-07-11 18:16, wrote: > On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: > > is ther a way to not let the colorbar cut space from the 2nd subplot. I > > would like to have them both the same size. yes, you can pass the cax parameter to colorbar which will put it inside that axis. replace your code from line 'plt.figure()' with this: f,(ax,ax2,ax3) = plt.subplots(3,1) CS = ax.contourf(X, Y, Z) CS = ax2.contourf(X, Y, Z) plt.colorbar(CS,cax=ax3,orientation='horizontal') > What you need to do (I think and I always do it like this) > Define 3 sets of axes by hand instead of subplot(211) you use > plt.axes(...) to create them (I guess there may be a nicer > method, not sure). I belive the plt.subplots() command is what Sebastian was referring to. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Benjamin R. <ben...@ou...> - 2011-07-11 16:28:31
|
On Mon, Jul 11, 2011 at 11:16 AM, Sebastian Berg <seb...@si... > wrote: > Hi, > > > On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: > > Hi all! > > > > following code shows the problem I have with placing a colorbar for > several > > subplots. > > > > #-----------------------------code------------ > > import matplotlib > > import numpy as np > > import matplotlib.cm as cm > > import matplotlib.mlab as mlab > > import matplotlib.pyplot as plt > > > > matplotlib.rcParams['xtick.direction'] = 'out' > > matplotlib.rcParams['ytick.direction'] = 'out' > > > > delta = 0.025 > > x = np.arange(-3.0, 3.0, delta) > > y = np.arange(-2.0, 2.0, delta) > > X, Y = np.meshgrid(x, y) > > Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) > > Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) > > # difference of Gaussians > > Z = 10.0 * (Z2 - Z1) > > > > plt.figure() > > > > plt.subplot(211) > > CS = plt.contourf(X, Y, Z) > > > > > > plt.subplot(212) > > CS = plt.contourf(X, Y, Z) > > > > > > plt.colorbar(orientation='horizontal') > > plt.show() > > > > #-------------end code-------------- > > result: > > http://old.nabble.com/file/p32037832/inttest.png > > > > is ther a way to not let the colorbar cut space from the 2nd subplot. I > > would like to have them both the same size. > > > > the subplot command only takes from the last axes as default. What you > need to do (I think and I always do it like this) Define 3 sets of axes > by hand instead of subplot(211) you use plt.axes(...) to create them (I > guess there may be a nicer method, not sure). Then you can pass which > axes to draw into with the colorbar function. > > Regards, > > Sebastian > > Personally, I prefer to use the axes_grid toolkit that allows you to specify if and how you want colorbar axes and provides an array of colorbar axes. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html#toolkit-axesgrid-index Enjoy! Ben Root |
|
From: Sebastian B. <seb...@si...> - 2011-07-11 16:17:13
|
Hi, On Mon, 2011-07-11 at 07:13 -0700, SiggiN wrote: > Hi all! > > following code shows the problem I have with placing a colorbar for several > subplots. > > #-----------------------------code------------ > import matplotlib > import numpy as np > import matplotlib.cm as cm > import matplotlib.mlab as mlab > import matplotlib.pyplot as plt > > matplotlib.rcParams['xtick.direction'] = 'out' > matplotlib.rcParams['ytick.direction'] = 'out' > > delta = 0.025 > x = np.arange(-3.0, 3.0, delta) > y = np.arange(-2.0, 2.0, delta) > X, Y = np.meshgrid(x, y) > Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) > Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) > # difference of Gaussians > Z = 10.0 * (Z2 - Z1) > > plt.figure() > > plt.subplot(211) > CS = plt.contourf(X, Y, Z) > > > plt.subplot(212) > CS = plt.contourf(X, Y, Z) > > > plt.colorbar(orientation='horizontal') > plt.show() > > #-------------end code-------------- > result: > http://old.nabble.com/file/p32037832/inttest.png > > is ther a way to not let the colorbar cut space from the 2nd subplot. I > would like to have them both the same size. > the subplot command only takes from the last axes as default. What you need to do (I think and I always do it like this) Define 3 sets of axes by hand instead of subplot(211) you use plt.axes(...) to create them (I guess there may be a nicer method, not sure). Then you can pass which axes to draw into with the colorbar function. Regards, Sebastian |
|
From: SiggiN <sn...@gw...> - 2011-07-11 14:13:11
|
Hi all! following code shows the problem I have with placing a colorbar for several subplots. #-----------------------------code------------ import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt matplotlib.rcParams['xtick.direction'] = 'out' matplotlib.rcParams['ytick.direction'] = 'out' delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) # difference of Gaussians Z = 10.0 * (Z2 - Z1) plt.figure() plt.subplot(211) CS = plt.contourf(X, Y, Z) plt.subplot(212) CS = plt.contourf(X, Y, Z) plt.colorbar(orientation='horizontal') plt.show() #-------------end code-------------- result: http://old.nabble.com/file/p32037832/inttest.png is ther a way to not let the colorbar cut space from the 2nd subplot. I would like to have them both the same size. Thanks! Siggi -- View this message in context: http://old.nabble.com/Decouple-the-colorbar-form-subplot-tp32037832p32037832.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Josh H. <jh...@sp...> - 2011-07-11 13:45:23
|
There is an open bug filed on this issue, #608932. Specifically, the issue is that multiple plots in the gallery examples work when run from a Python prompt, yet the html page that gets generated for the documentation shows the exception message. For what it is worth, I submitted the radar chart demo a while back so if there are chart-specific questions I might be able to help. Josh Benjamin Root-2 wrote: > > On Sunday, June 26, 2011, Warren Weckesser > <war...@en...> wrote: >> >> >> On Sun, Jun 26, 2011 at 7:44 PM, Benjamin Root <ben...@ou...> wrote: >> >> >> On Sunday, June 26, 2011, Carl Karsten <ca...@pe...> wrote: >>> http://matplotlib.sourceforge.net/examples/api/radar_chart.html >>> >>> "Exception occurred rendering plot." >>> >> >> Without more information, we can't help you. What version of >> matplotlib are you using? On what OS? How did you install it? Do the >> tests pass? And which backend? >> >> >> That error is what shows up on the web page when you follow the link. >> >> Warren >> >> > > Ah, indeed it is. I apologize for misunderstanding, what is odd is > that the demo didn't work, but the mpl logo rendered fine. > > Who was it that uploaded the recent rebuild of the docs? > > Ben Root > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ----- Josh Hemann Group Manager - Advanced Analytics Sports Authority jhemann at sportsauthority com -- View this message in context: http://old.nabble.com/broken-demo-tp31933682p32037581.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Brendan B. <bre...@br...> - 2011-07-09 22:50:39
|
Does matplotlib have a convenient way to produce a histogram of
categorical (possibly non-numeric) values? I can do it with bar(),
but there's a fair amount of boilerplate involved (calculating the
frequencies, counting the number of distinct values, etc.). This
seems like it would be a common task, so I'm wondering if there's a
function for it, or, failing that, a standard recipe.
Thanks,
--
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is
no path, and leave a trail."
--author unknown
|
|
From: Ian T. <ian...@gm...> - 2011-07-09 08:28:31
|
Try tricontourf; I've attached an example. Most of the example code is manipulating your input data and calculating the connectivity of your grid. I hope this helps, Ian Thomas |
|
From: Paul I. <piv...@gm...> - 2011-07-09 04:48:36
|
Nader A, on 2011-07-08 20:22, wrote: > I am new to matplotlib. Welcome to the community! > What I want to do is instead of filling the color in red, i want to the > color to be a contour plot of the stress. I think contour and contourf will do what you want, see: http://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Nader A <aen...@ya...> - 2011-07-09 03:22:50
|
Greetings, I am new to matplotlib. I have to plot a cross section of a cylinder and I want apply the stress in the section to be a contour plot. Similar to what you get from a Finite Element Analysis data. I have the data organized such that I can use fill_between to create the basic plot and I use the a uniform color (red) for now to fill between the lines. The data organized is organized (see attached 'data.txt' file) such that the fill_between is used as follows: http://old.nabble.com/file/p32023678/data.txt data.txt plt.fill_between(X, Y1, Y2,facecolor='red',alpha=alpha,linewidth=2) plt.fill_between(X, Y3, Y4,facecolor='red',alpha=alpha,linewidth=2) This produces a figure in this format: http://old.nabble.com/file/p32023678/Uniform_Color.png What I want to do is instead of filling the color in red, i want to the color to be a contour plot of the stress. The stress values are shown in the last column of the 'data.txt' file. So, based on the stress values, the fill in color should vary (say from blue for min(stress) values and red for max(stress) values. I was able to do a color extract for regions, but the colors are not gradient and smooth as should be in stress contour plot. The example I was able to do is as follow: http://old.nabble.com/file/p32023678/Contour.png I appreciate any help on this matter. Thanks, -- View this message in context: http://old.nabble.com/Change-color-for-fill_between-to-contour-plot-tp32023678p32023678.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Tony Yu <ts...@gm...> - 2011-07-08 21:43:02
|
On Fri, Jul 8, 2011 at 5:11 PM, Geoffrey Irving <ir...@na...> wrote: > Hello, > > I'm using matplotlib through MacPorts (py26-matplotlib > @1.0.1_2+tkinter) on Mac OS X 10.6.8. If I run pylab.show() from a > script, the plot window starts up in the background rather than taking > focus. Is anyone else seeing this behavior or have ideas as to > workarounds? > Hi, Just for reference this windowing issue has been brought up before and appears to be an issue on other backends/OSs: http://www.mail-archive.com/mat...@li.../msg18200.html The last reply<http://www.mail-archive.com/mat...@li.../msg18216.html>in the thread suggests that controlling this behavior can be done, but needs someone with enough motivation to do it. Every few months, I get annoyed enough with the current behavior that I look into trying to make the suggested changes; soon after, I realize that I'm terrible at GUI programming. Best, -Tony |
|
From: Geoffrey I. <ir...@na...> - 2011-07-08 21:12:18
|
Hello, I'm using matplotlib through MacPorts (py26-matplotlib @1.0.1_2+tkinter) on Mac OS X 10.6.8. If I run pylab.show() from a script, the plot window starts up in the background rather than taking focus. Is anyone else seeing this behavior or have ideas as to workarounds? There's a Raise function in wxWidgets that could in theory bring the window into focus, but I'm not sure how to get access to the appropriate object to call Raise on. Thanks, Geoffrey |
|
From: Michael D. <md...@st...> - 2011-07-08 19:42:09
|
It's hard to say from the code snippet, but I would track down whether self.page_graph.figure is the figure that you think it is. It could be a Figure object without any axes on it. Cheers, Mike On 07/08/2011 03:55 AM, Sebastian Rhode wrote: > Hi, > > I use the followng function for my application: > > def OnSaveAs(self, event): > > dlg = wx.FileDialog(self, 'Choose a Filename', os.getcwd(), '', > '*.png*', wx.SAVE | wx.OVERWRITE_PROMPT) > > if dlg.ShowModal() == wx.ID_OK: > > savename = dlg.GetPath() > > self.page_graph.figure.savefig(savename) > > dlg.Destroy() > > > This seems to work, but when I open the resulting PNG, only the figure > is saved without the graph ... But when I use the save button from the > figure itself, the result is fine, the figure is save with the graph. > So I can just removed that function, but I am curious, why it does not > work as expected. Any ideas, what my mistake is? > > Cheers, > > Sebi > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Noah A. <noa...@sy...> - 2011-07-08 19:29:22
|
Hi Paul, I am using py2exe, hence the *.exe. The application is otherwise straight python. Noah. -----Original Message----- From: Paul Ivanov [mailto:piv...@gm...] Sent: July-08-11 11:56 AM To: mat...@li... Subject: Re: [Matplotlib-users] Matplotlib crash on Windows 2008 Server Noah Aklilu, on 2011-07-07 16:06, wrote: > I am using matplotlib as part of a data analysis tool, and I am having > problems with a crash on Windows 2008 server when plotting data. The > application use to run fine, though I guess there was a round of > windows updates recently (including some > VC++ 2008 runtime updates). No problems on Windows 7 > professional with the same runtime updates. > > I have tracked the problem down to the function call to > update_path_extents in the _path.pyd module from transforms.py > (L821 in 1.0.1). > > Anyone else seeing this? Hi Noah, I'm not on windows, but is this an application that you built and compiled? Is recompiling matplotlib an option? best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Darren D. <dsd...@gm...> - 2011-07-08 18:49:24
|
On Wed, Jun 29, 2011 at 10:46 AM, Jorge Garcia <jga...@fi...> wrote: > Hello, > > I was trying to test out the Python 3 development version with the first > plot shown in the pyplot tutorial. Everything seems to work ok until I go > > plt.show() > > at which point nothing happens, I don't see a plot. Python accepts the > command and is waiting for a new command but I have no plot. Maybe you don't have a python-3 compatible gui library installed, in which case your backend is defaulting to AGG, which cannot render a window for you. > I've tried changing the backend in the matplotlibrc file to TkAgg, but I > still get nothing, in fact now when I try to import matplotlib I get a > traceback error that name -tkagg is not defined, seems like it might be > something in the module. > > Can anyone lend a hand? Posting the exact traceback would help us help you. I'll hazard a guess that you don't have the tk development packages installed, so the tkagg backend could not be built when you installed matplotlib for py3, and therefore tkagg cannot be selected as your backend. Darren |
|
From: Jorge G. <jga...@fi...> - 2011-07-08 18:38:24
|
How Would I set the backend to Tk? Do I have to change something in the matplotlibrc file? Maybe I have to specify where Tk is located? Any guidance would be helpful. Thanks again, Jorge Garcia On Sun, Jul 3, 2011 at 6:55 PM, Jorge Garcia <jga...@fi...> wrote: > Hi Chris, > > No I haven't been able to yet, but I'm hoping to get it working with a > little help. Matplotlib I think is the last library that needs to be ported > to finally make the transition to Python3 feasible for the mainstream Python > users. That and maybe wxPython, but since I don't use wxPython it's not > really an issue for me. > > Best Regards, > > > On Sat, Jul 2, 2011 at 7:04 PM, Chris Edwards <cb...@oz...> wrote: > >> Hi Jorge, >> >> I had the same problem with Python(xy) and couldn't get help so I went >> back to an earlier version that worked for me. >> >> Did you solve the problem? >> >> Chris >> >> On 30/06/2011, at 12:46 AM, Jorge Garcia wrote: >> >> > Hello, >> > >> > I was trying to test out the Python 3 development version with the first >> plot shown in the pyplot tutorial. Everything seems to work ok until I go >> > >> > plt.show() >> > >> > at which point nothing happens, I don't see a plot. Python accepts the >> command and is waiting for a new command but I have no plot. >> > >> > I've tried changing the backend in the matplotlibrc file to TkAgg, but I >> still get nothing, in fact now when I try to import matplotlib I get a >> traceback error that name -tkagg is not defined, seems like it might be >> something in the module. >> > >> > Can anyone lend a hand? >> > >> > Thanks, >> > >> > Jorge Garcia >> > >> ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously >> valuable. >> > Why? It contains a definitive record of application performance, >> security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > >> http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________ >> > Matplotlib-users mailing list >> > Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |
|
From: Paul I. <piv...@gm...> - 2011-07-08 17:55:47
|
Noah Aklilu, on 2011-07-07 16:06, wrote: > I am using matplotlib as part of a data analysis tool, and I am > having problems with a crash on Windows 2008 server when > plotting data. The application use to run fine, though I guess > there was a round of windows updates recently (including some > VC++ 2008 runtime updates). No problems on Windows 7 > professional with the same runtime updates. > > I have tracked the problem down to the function call to > update_path_extents in the _path.pyd module from transforms.py > (L821 in 1.0.1). > > Anyone else seeing this? Hi Noah, I'm not on windows, but is this an application that you built and compiled? Is recompiling matplotlib an option? best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Paul I. <piv...@gm...> - 2011-07-08 17:44:53
|
Nat Echols, on 2011-06-28 12:58, wrote: > We started using Python 2.7.2 a week or two ago, and I'm now running into > this problem when attempting to build matplotlib 1.0.1 on several of our > machines: > > Traceback (most recent call last): > File "setup.py", line 162, in <module> > if check_for_tk() or (options['build_tkagg'] is True): > File > "/Volumes/Scratch1/nat/phenix_installer/build-source/mac-intel-osx/patchnose/tmp/matplotl > ib-1.0.1/setupext.py", line 832, in check_for_tk > (Tkinter.__version__.split()[-2], Tkinter.TkVersion, > Tkinter.TclVersion)) > IndexError: list index out of range > > When I run the version of Python that I'm using to build matplotlib, this is > what I'm seeing: > > >>> import Tkinter > >>> Tkinter.__version__ > '$Revision$' Hi Nat, It's strange that your Tkinter got built without a typical version string. For me: In [1]: import Tkinter In [2]: Tkinter.__version__ Out[2]: '$Revision: 73770 $' In [3]: Tkinter.__version__.split()[-2] Out[3]: '73770' > I don't need or want Tkinter support either in Python or in matplotlib, but > it appears to be impossible to disable Tkinter when compiling Python. Is > there a way around this problem without patching the Python build, or > matplotlib, or both? I'm not sure about Python, but for matplotlib, just add these two lines to your setup.cfg (or create one with these two lines in it): [gui_support] tkagg = False You can read the setup.cfg.template for a full explanation (and other install options available to you).A best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Magnus G. <mag...@it...> - 2011-07-08 10:01:19
|
I am trying to make a 3D surfplot from multiple "patches". Basically, my function is split up into several blocks, and I to plot them one after the other into the same figure in order to get the full plot. I manage to get the data plotted, but it looks awful. It seems like the data is not layered correctly, with parts of the data that should be behind other things instead get in front of them. I attach example figures to illustrate my problem
1. 'image-bw.png'. No colors filled in (alpha = 0).
2. 'image-color.png'. With colors, alpha = 1.
3. 'image-color-rot.png'. The same plot as 2, but slightly rotated.
Note how the problems dissappear in figure 3, where the plot has been rotated.
This is the function that does the plotting. It simply iterates over the blocks, and plots each block's data in the sub-domain that it represents.
def plotSurface(self):
fig = plt.figure()
ax = fig.gca(projection='3d')
minAbsVal = self.min()
maxAbsVal = self.max()
Z_norm = plt.Normalize(minAbsVal, maxAbsVal)
for node in self.nodes:
if node.type == 'leaf':
X = np.linspace(node.block.bounds[0,0], node.block.bounds[0,1], node.block.nx[0])
Y = np.linspace(node.block.bounds[1,0], node.block.bounds[1,1], node.block.nx[1])
X, Y = np.meshgrid(X, Y)
Z = abs(node.block.data)
pl = ax.plot_surface(X, Y, Z, rstride=2, cstride=2, cmap=mpl.cm.jet, norm=Z_norm, linewidth=0.1, alpha=1.0, shade=True, antialiased=True)
domain_bounds = self.nodes[0].block.bounds
ax.set_xlabel('X')
ax.set_xlim3d(domain_bounds[0,0], domain_bounds[0,1])
ax.set_ylabel('Y')
ax.set_ylim3d(domain_bounds[1,0], domain_bounds[1,1])
ax.set_zlabel('Z')
ax.set_zlim3d(minAbsVal,maxAbsVal)
Is this a bug or am I doing something wrong?
Best Regards,
Magnus Gustafsson
|
|
From: Sebastian R. <seb...@go...> - 2011-07-08 07:56:25
|
Hi,
I use the followng function for my application:
def OnSaveAs(self, event):
dlg = wx.FileDialog(self, 'Choose a Filename', os.getcwd(), '',
'*.png*', wx.SAVE | wx.OVERWRITE_PROMPT)
if dlg.ShowModal() == wx.ID_OK:
savename = dlg.GetPath()
self.page_graph.figure.savefig(savename)
dlg.Destroy()
This seems to work, but when I open the resulting PNG, only the figure is
saved without the graph ... But when I use the save button from the figure
itself, the result is fine, the figure is save with the graph. So I can just
removed that function, but I am curious, why it does not work as expected.
Any ideas, what my mistake is?
Cheers,
Sebi
|
|
From: Ben E. <bj...@ai...> - 2011-07-08 02:55:41
|
Hi. I have a set of data with a range of (say) 0 to 100. Is it possible to get matplotlib to use the same colour for 0 and 100, so that the colours "meet" at the ends of the color bar? One workaround is to just manipulate the data (eg. using abs (x-50)), but I would rather not, if possible. Thanks, Ben |
|
From: Noah A. <noa...@sy...> - 2011-07-07 22:26:18
|
Hello, I am using matplotlib as part of a data analysis tool, and I am having problems with a crash on Windows 2008 server when plotting data. The application use to run fine, though I guess there was a round of windows updates recently (including some VC++ 2008 runtime updates). No problems on Windows 7 professional with the same runtime updates. I have tracked the problem down to the function call to update_path_extents in the _path.pyd module from transforms.py (L821 in 1.0.1). Anyone else seeing this? The event log shows that it is an uncaught VC++ exception based on this message: Log Name: Application Source: Application Error Date: 07/07/2011 3:11:40 PM Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: TS1.synodon.com Description: Faulting application name: sensview.exe, version: 0.0.0.0, time stamp: 0x4918019c Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7bafa Exception code: 0xe06d7363 Fault offset: 0x0000b727 Faulting process id: 0x18d8 Faulting application start time: 0x01cc3cea60fe867f Faulting application path: C:\Program Files (x86)\sensview\sensview.exe Faulting module path: C:\Windows\syswow64\KERNELBASE.dll Report Id: b4b6d9f6-a8dd-11e0-bdde-002590135f53 Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Level>2</Level> <Task>100</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2011-07-07T21:11:40.000000000Z" /> <EventRecordID>10539</EventRecordID> <Channel>Application</Channel> <Computer>TS1.synodon.com</Computer> <Security /> </System> <EventData> <Data>sensview.exe</Data> <Data>0.0.0.0</Data> <Data>4918019c</Data> <Data>KERNELBASE.dll</Data> <Data>6.1.7601.17514</Data> <Data>4ce7bafa</Data> <Data>e06d7363</Data> <Data>0000b727</Data> <Data>18d8</Data> <Data>01cc3cea60fe867f</Data> <Data>C:\Program Files (x86)\sensview\sensview.exe</Data> <Data>C:\Windows\syswow64\KERNELBASE.dll</Data> <Data>b4b6d9f6-a8dd-11e0-bdde-002590135f53</Data> </EventData> </Event> |
|
From: Eric F. <ef...@ha...> - 2011-07-07 18:33:34
|
On 07/07/2011 06:59 AM, Ravi Kanth Vanapalli wrote: > Hi all, > I need some help creating tooltips using pyplot figure rather than the > exisiting pylab example as in the link below > http://www.mail-archive.com/mat...@li.../msg00954.html > Well there is a specific reason for this. I am trying to write an > application which needs to call show() twice. matplotlib 1.0.1 solves > this issue by using show() in pyplot. > The code snippet i've used is > from pylab import * > import scipy > from wxPython.wx import * > import wx > import matplotlib.pyplot as plt You are going off the rails right here. Don't try to mix pyplot and direct use of a gui toolkit. Just don't do it. Please. If you want to use a gui toolkit directly, then start by understanding the embedding*.py examples in the user_interfaces subdirectory of the matplotlib examples. Eric > application = wxPySimpleApp() > tooltip = wx.ToolTip(tip='tip with a long %s line and a newline\n' % (' > '*100)) > fig=plt.figure() > ax=plt.gca() > x=arange(10) > y=x*2 > plt.plot(x,y) > plt.xlim(-2,15) > plt.show() > print 'passed the first show' > x=arange(10) > y=sin(x) > plt.xlim(-5,10) > plt.plot(x,y) > #print plt.get_current_fig_manager().canvas.SetToolTip(tooltip) > plt.show() > print 'passed the second show' > As per my observation, we need not create a new figure everytime we use > pyplot. Just plt.show() serves the purpose. > In case of using pylab show() then we need to call it once at the end of > the program or create a new figure everytime previous figure is closed > and it works too. > *Please correct me if my observation is wrong.* > I am stuck at the point at tooltips now. How should I create tooltips > on a figure plotted using pyplot. > My program says there "*FigureCanvasTkAgg instance has no attribute > 'SetToolTip'*" > plt.get_current_fig_manager().canvas.SetToolTip(tooltip) > for the current figure manager but in pylab equivalent > *from pylab import get_current_fig_manager as gcfm* > *gcfm().canvas.SetToolTip(tooltip) * > works. > Please guide me how to go about this issue. > > -- > Regards, > > RaviKanth VN Vanapalli > MS - Telecommunications Engineering > The University of Texas at Dallas, Richardson, TX > Ph: (571) 420 0656 > Email: vvn...@gm... <mailto:vvn...@gm...> > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |