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. |