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
(24) |
2
(35) |
3
(21) |
4
(15) |
5
(1) |
|
6
(2) |
7
(30) |
8
(16) |
9
(11) |
10
(10) |
11
(10) |
12
(4) |
|
13
(2) |
14
(14) |
15
(21) |
16
(7) |
17
(5) |
18
(2) |
19
(5) |
|
20
|
21
(4) |
22
(8) |
23
(4) |
24
(6) |
25
(2) |
26
(2) |
|
27
(5) |
28
(9) |
29
(16) |
30
(14) |
31
(5) |
|
|
|
From: Ryan N. <rya...@gm...> - 2009-12-08 20:10:46
|
Sorry for the delay.
I don't know if I ever included my software versions:
Python & IDLE 2.6.2
matplotlib 0.99.0
numpy 1.4.0rc1 (I was using 1.3.0)
Here is more complete code. This is the only place I use matplotlib for
anything so I don't think any earlier code should affect the plot.
I've included the values of the input variables below and I could include
all the code which gets the data and manipulates it if this would help.
def plotGrid(x_dim,y_dim,z_dim,long_name,units,contours=16):
"""
This will create a frame for all the sub plots. There will be one row
(subplot) per parameter. There will be one column.
All plots will share their x scale (time)
Each row will have its own y scale and legend
"""
from matplotlib import pyplot
from mpl_toolkits.axes_grid import AxesGrid
from numpy import meshgrid, transpose
nrows = len(z_dim) # Number of rows
print('there are',nrows,'rows') # Confirm that the number of rows is as
expected.
fig_h_size = 20. # figure width in inches
fig_v_size = 8. # figure height in inches
dev_mult = 3 # How many standard deviations to mask out.
x_grid,y_grid = meshgrid(x_dim,y_dim)
x_grid = transpose(x_grid)
y_grid = transpose(y_grid)
# Start the plotting routines
DAP_figure = pyplot.figure(1,(fig_h_size,fig_v_size))
pyplot.title('Title goes here')
pyplot.figtext(0.05,.5,"Depth
(m)",rotation='vertical',verticalalignment='center')
# Create a grid of axes with the AxesGrid helper class
my_grid = AxesGrid(DAP_figure, 111, # Only one grid in DAP_figure
nrows_ncols = (nrows,1),
axes_pad = 0.0, # pad between axes in inches
aspect=False, # By default (False), widths and heigths
of axes in the grid are scaled independently. If True, they are scaled
according to their data limits
add_all=True, # Add axes to figures if True (default
True)
share_all=True, # xaxis & yaxis of all axes are shared
if True (default False)
label_mode = "L", # location of tick labels thaw will be
displayed. "1" (only the lower left axes), "L" (left most and bottom most
axes), or "all"
cbar_location="right", # "right" or "top"
cbar_mode="each", # "None","single", or "each"
cbar_size="2%",
cbar_pad="1%",
)
for i,parameter in enumerate(z_dim):
z_dim[parameter] = maskDAP(z_dim[parameter],parameter,dev_mult)
#Need to mask each grid
ax = my_grid[i].pcolor(x_grid,y_grid,z_dim[parameter])
print('from',x_grid[0][0],'to',x_grid[-1][0])
my_grid[i].set_ylabel(long_name[parameter]) # Puts a y label on
every graph. Eventually we want this labeled only once.
my_grid.cbar_axes[i].colorbar(ax)
my_grid.cbar_axes[i].axis["right"].toggle(ticklabels=True,label=True)
my_grid.cbar_axes[i].set_ylabel(units[parameter])
# Now show it
pyplot.draw()
pyplot.show()
return x_grid, y_grid, my_grid #Useful only for debugging. There is no
code after this.
Here are some typical values for the inpit variables if it helps,
x_dim, time in epoch seconds, is:
array([1253250000, 1253251800, 1253253600, 1253255400, 1253257200,
1253259000, 1253260800, 1253262600, 1253264400, 1253266200,
1253268000, 1253269800, 1253271600, 1253273400, 1253275200,
1253277000, 1253278800, 1253280600, 1253282400, 1253284200,
1253286000, 1253287800, 1253289600, 1253291400, 1253293200,
1253295000, 1253296800, 1253298600, 1253300400, 1253302200,
1253304000, 1253305800, 1253307600, 1253309400, 1253311200,
1253313000, 1253314800, 1253316600, 1253318400, 1253320200,
1253322000, 1253323800, 1253325600, 1253327400, 1253329200,
1253331000, 1253332800])
y_dim, water depths in meters, is:
array([ 0. , -0.1, -0.2, -0.3, -0.4, -0.5, -0.6, -0.7, -0.8, -0.9, -1. ,
-1.1, -1.2, -1.3, -1.4, -1.5, -1.6, -1.7, -1.8, -1.9, -2. , -2.1,
-2.2, -2.3, -2.4, -2.5, -2.6, -2.7])
in the example plot below z_dim is a dictionary with three arrays,
'do','chl','turb'.
as an example, z_dim['chl'] (chlorophyl) is a 2D array of the form:
masked_array(data =
[[-- 14.8400002718 14.8400002718 ..., 13.1000023892 -- --]
[-- 15.0 15.0 ..., -- -- --]
[-- 13.1241378212 13.1241378212 ..., -- -- --]
...,
[-- 12.081481385 12.081481385 ..., 10.3037038589 -- --]
[-- 11.0882356451 11.0882356451 ..., 9.95714437393 -- --]
[-- 13.4448273754 13.4448273754 ..., -- -- --]],
mask =
[[ True False False ..., False True True]
[ True False False ..., True True True]
[ True False False ..., True True True]
...,
[ True False False ..., False True True]
[ True False False ..., False True True]
[ True False False ..., True True True]],
fill_value = 1e+20)
Here's the plot as it stands now:
[image: fgpXr.png]
Thank you again for your time.
On Fri, Dec 4, 2009 at 4:07 PM, Jae-Joon Lee <lee...@gm...> wrote:
>
> Please, "more" complete example does not make any difference unless it is
> complete.
>
|
|
From: Daniel B. <end...@gm...> - 2009-12-08 17:14:46
|
Good morning list, I have been trying to install the latest matplotlib on Snow Leopard with the latest X-Code for a few days. I have tried the installer packages (wrong versions) and the source (build errors) and neither worked. I finally got it installed correctly by using MacPorts. I wrote up what I did in case anyone else is having issues installing on Snow Leopard [1]. Cheers, Daniel [1] - http://www.endlesslycurious.com/2009/12/08/installing-matplotlib-on-snow-leopard-with-macports/ |
|
From: Trevor I. <tre...@gm...> - 2009-12-08 16:12:09
|
Hi:
I'm trying to get a semilog 3D plot. I want to plot several 2D time series
lines, with the third axis being on a log scale. I am trying to set an axis
to log using ax.set_yscale('log'), but am getting errors. Is this possible?
I keep getting numpy errors when I try:
raise MaskError, 'Cannot convert masked element to a Python int.'
numpy.ma.core.MaskError: Cannot convert masked element to a Python int.
My attempt:
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
#ax = fig.gca()
ax = Axes3D(fig)
colors = ('r', 'g', 'b', 'k')
zd = (0., 1., 2., 3.)
T2 = (0.9, .8, .7, .6)
ic = 1
for ic in xrange(len(colors)):
x = np.arange(0.05,1,.005)
z = np.exp(-x/T2[ic]) + np.random.normal(0, .05, len(x))
y = np.exp(zd[ic])*np.ones(len(x))
ax.plot(x,y,z)
# Error if uncommented
#ax.set_yscale('log')
plt.show()
Thanks for any insight.
|
|
From: Abhimanyu L. <abh...@gm...> - 2009-12-08 14:22:54
|
On Tue, Dec 8, 2009 at 3:27 AM, Matthias Michler <Mat...@gm...>wrote:
>
> I added an example program which illustrates my idea using transformation
> of
> axes-coord. to screen-coord. and from screen-coord. to fig-coord.
>
> point_screen = ax.transAxes.transform_point(point_ax)
> point_fig = fig.transFigure.inverted().transform_point(point_screen)
>
>
> Actually, I wanted my text to not move relative to one of the x-axis
labels.
I found the solution with some tinkering. Basically, I needed to grab the
transformation of the labels.
tx = ax.get_xticklabels()[0]
text(1.5, 0.0, "some text", transform=tx.get_transform())
To also get a constant offset:
text(1.5, 0.0, "some text", transform=tx.get_transform() +
ScaledTransformation(-.1,-.1, fig.dpi_scale_trans))
Thanks,
Abhi
> On Monday 07 December 2009 21:38:17 Abhimanyu Lad wrote:
> > Hi,
> >
> > How do I get the coordinates of the ticks and their labels in a
> coordinate
> > system that I can feed to figtext or text?
> > I want to display some additional text near one of the ticklabels on the
> x
> > axis. Although I could get the coordinates for figtext using trial and
> > error, but is there a correct way of doing this (using transformations?)
> so
> > that my text does not move relative to the tick labels.
> >
> > Thanks!
> > Abhi
>
>
>
>
|
|
From: ihab r. <if...@gm...> - 2009-12-08 09:28:26
|
Hu Jae-Joon, Yes this is very useful, I thinks many people here will love this. I tried to access the code, but I could not get there. Can u pass me the link. Cheers Ihab On Mon, Dec 7, 2009 at 9:25 PM, Jae-Joon Lee <lee...@gm...> wrote: > I updated the axes_grid toolkit in the svn, and I hope it is more useful. > > Check the example > > examples/axes_grid/demo_floating_axes.py > > The output is attached. > > -JJ > > > On Wed, Nov 4, 2009 at 9:19 AM, Jae-Joon Lee <lee...@gm...> wrote: > > Are you running svn version of mpl? > > Also, as I said, the example is based on the patch yet to be submitted. > > So, I can send you the example, but it will take me sometime to commit > > the patch. > > I'll give you a notice when this happen. > > > > As far as rotating the ticks, if you're using markers, than I guess > > you need a custom artist class. > > So, I recommend you to just use simple lines. > > > > Whatever path you take (even with my example), it will not be easy. > > So, again, finding other plotting tool that support cone plots may be > > more practical (unless someone comes up with a working example). > > > > Regards, > > > > -JJ > > > > > > > > On Wed, Nov 4, 2009 at 2:44 AM, ifriad <if...@gm...> wrote: > >> > >> Hi, > >> Thanks, I think the attached sample is good enough for me, In fact I got > >> something similar except for the ticks I didn't know how to make them > >> slanted, so If I can get the code for you plot this will be really > great. > >> > >> I can then fine tune it to my needs. > >> > >> Thanks Ihab > >> > >> Jae-Joon Lee wrote: > >>> > >>> Unfortunately, I don't think something like cone plots can be easily > >>> done with current matplotlib. > >>> > >>> I guess you can define custom projection and such, as in the example > below > >>> > >>> > http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html > >>> > >>> but this will involve some (maybe a lot) coding + some knowledge of > >>> mpl internals. > >>> > >>> With the experimental curvelinear coordinate support in axes_grid > >>> toolkit (and with yet-to-be-committed patch), one can draw very basic > >>> cone plot (see the attached). However, the current support is far from > >>> complete. I'm willing to make it better, but I'm afraid that this may > >>> not happen in a near future (likely not in this year). > >>> > >>> Of course, you can try to plot everything (axes boundary, ticks, > >>> ticklabels etc.) manually if you want, and maybe this is the best way > >>> currently available. > >>> > >>> Regards, > >>> > >>> -JJ > >>> > >>> On Sat, Oct 31, 2009 at 4:15 AM, ifriad <if...@gm...> wrote: > >>>> > >>>> Hi, > >>>> Does any one knows how to do those cone plots, > >>>> > >>>> I am attaching a sample plot. > >>>> > >>>> Thanks Ihab > >>>> http://old.nabble.com/file/p26140834/cone.png cone.png > >>>> -- > >>>> View this message in context: > >>>> http://old.nabble.com/cone-plots-tp26140834p26140834.html > >>>> Sent from the matplotlib - users mailing list archive at Nabble.com. > >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ > >>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA > >>>> is the only developer event you need to attend this year. Jumpstart > your > >>>> developing skills, take BlackBerry mobile applications to market and > stay > >>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! > >>>> http://p.sf.net/sfu/devconference > >>>> _______________________________________________ > >>>> Matplotlib-users mailing list > >>>> Mat...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >>>> > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA > >>> is the only developer event you need to attend this year. Jumpstart > your > >>> developing skills, take BlackBerry mobile applications to market and > stay > >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! > >>> http://p.sf.net/sfu/devconference > >>> _______________________________________________ > >>> Matplotlib-users mailing list > >>> Mat...@li... > >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >>> > >>> > >> > >> -- > >> View this message in context: > http://old.nabble.com/cone-plots-tp26140834p26192193.html > >> Sent from the matplotlib - users mailing list archive at Nabble.com. > >> > >> > >> > ------------------------------------------------------------------------------ > >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > >> trial. Simplify your report design, integration and deployment - and > focus on > >> what you do best, core application coding. Discover what's new with > >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> Matplotlib-users mailing list > >> Mat...@li... > >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >> > > > |
|
From: Gary R. <gr...@bi...> - 2009-12-08 08:26:59
|
Wayne Watson wrote: > I thought the console was the only way to use IPython. I go to > Start->Allprograms->IPython, and select IPython. Oh, I see *Console" is > something of a replacement for the Win Cmd Console. Is there some site > that shows off it's features? Not that I know of. By the way, in case you haven't set it up a shortcut to Console that starts up IPython, I did it like this: I created a shortcut to console in my start menu: Properties|Shortcut Target: "C:\Program Files\Console2\Console.exe" Start in: "C:\Program Files\Console2" Then in Console, under Edit|Settings|Tabs Create a tab with Main|Title & icon|Title: iPython Shell|Shell: C:\PYTHON25\Scripts\ipython.exe -pylab -wthread -p pylab Shell|Startup dir: C:\Python25 |
|
From: Scott S. <sco...@gm...> - 2009-12-08 06:29:41
|
>2009/12/8 Robert Kern <rob...@gm...>: > Scott Sinclair wrote: >>> 2009/12/7 Wayne Watson <sie...@sb...>: >>> I see a variance with replying to a post on this list and other Python >> >> The moral? Always use "Reply To", and hope everyone else remembers to >> do so as well :) > > Did you mean "Reply All"? Yes. Thanks for spotting that. Slip of the brain. Cheers, Scott |
|
From: Robert K. <rob...@gm...> - 2009-12-08 06:21:14
|
Scott Sinclair wrote: >> 2009/12/7 Wayne Watson <sie...@sb...>: >> I see a variance with replying to a post on this list and other Python >> lists. It appears to be a difference between the way people post. If I >> see From: ab...@xy... and To: mat...@pu..., >> then Reply All gets both. If I see, From: jo...@xy... and To: my >> e-mail address (or any personal e-address), then Reply All only goes to >> the From e-address, which means I have to fill in the e-address for this >> mail list. Apparently, some people from outside using a mail program >> like Thunderbird. How do I get two for price of one, so to speak? > > The default "Reply To" on this list is set to go to the original > poster. It's a setting in the mailing list software, not anyone's > e-mail client. > > If you post a question and someone responds using "Reply To", then > their response will go directly to you. If they respond using "Reply > To All" (as I have here) then the e-mail is copied to the list address > as well. > > The moral? Always use "Reply To", and hope everyone else remembers to > do so as well :) Did you mean "Reply All"? Some of us would appreciate it if people just responded to the list and not including our individual addresses at all. With very rare exceptions, everyone who posts is already on the list. I subscribe to the list via the GMane NNTP interface and hate receiving private-looking (hence urgent-looking) replies in my inbox. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
|
From: Scott S. <sco...@gm...> - 2009-12-08 06:05:20
|
> 2009/12/7 Wayne Watson <sie...@sb...>: > I see a variance with replying to a post on this list and other Python > lists. It appears to be a difference between the way people post. If I > see From: ab...@xy... and To: mat...@li..., > then Reply All gets both. If I see, From: jo...@xy... and To: my > e-mail address (or any personal e-address), then Reply All only goes to > the From e-address, which means I have to fill in the e-address for this > mail list. Apparently, some people from outside using a mail program > like Thunderbird. How do I get two for price of one, so to speak? The default "Reply To" on this list is set to go to the original poster. It's a setting in the mailing list software, not anyone's e-mail client. If you post a question and someone responds using "Reply To", then their response will go directly to you. If they respond using "Reply To All" (as I have here) then the e-mail is copied to the list address as well. The moral? Always use "Reply To", and hope everyone else remembers to do so as well :) Cheers, Scott |
|
From: Eric F. <ef...@ha...> - 2009-12-08 04:27:07
|
Hao Wen wrote: > Hi there: > > I tried to plot large numbers and scientific notation has to be used. > But instead of "\times" symbol, it used "e", which cannot be accepted as > publishable. Anyone know how to deal with that? Add a kwarg to your formatter initialization. See below. Eric > > My original code is: > #################################################### > import matplotlib.pyplot as plt > import numpy as np > from matplotlib.ticker import ScalarFormatter > > # data generation > x = np.arange(1,1e3,20) > y = x**2 > > formatter = ScalarFormatter() formatter = ScalarFormatter(useMathText=True) > formatter.set_scientific(True) > formatter.set_powerlimits((-3,3)) > > fig = plt.figure() > ax = fig.add_subplot(111) > ax.xaxis.set_major_formatter(formatter) > ax.yaxis.set_major_formatter(formatter) > ax.plot(x,y) > > plt.show() > > #################################################### |
|
From: <PH...@Ge...> - 2009-12-08 03:49:07
|
> -----Original Message----- > From: Hao Wen [mailto:wen...@gm...] > Sent: Monday, December 07, 2009 7:25 PM > To: mat...@li... > Subject: [Matplotlib-users] scientific notation \times symbol > > Hi there: > > I tried to plot large numbers and scientific notation has to be used. > But instead of "\times" symbol, it used "e", which cannot be accepted as > publishable. Anyone know how to deal with that? > > My original code is: > #################################################### > import matplotlib.pyplot as plt > import numpy as np > from matplotlib.ticker import ScalarFormatter > > # data generation > x = np.arange(1,1e3,20) > y = x**2 > > formatter = ScalarFormatter() > formatter.set_scientific(True) > formatter.set_powerlimits((-3,3)) > > fig = plt.figure() > ax = fig.add_subplot(111) > ax.xaxis.set_major_formatter(formatter) > ax.yaxis.set_major_formatter(formatter) > ax.plot(x,y) > > plt.show() > > #################################################### Hao, I ran your code and got this (see attached). I don't get the 'e' that you mention, but a 'times' symbol instead. My rcParams are such that the entire figure is sent to LaTeX. Not sure if that changes things. Good luck -Paul |
|
From: Hao W. <wen...@gm...> - 2009-12-08 03:24:46
|
Hi there: I tried to plot large numbers and scientific notation has to be used. But instead of "\times" symbol, it used "e", which cannot be accepted as publishable. Anyone know how to deal with that? My original code is: #################################################### import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import ScalarFormatter # data generation x = np.arange(1,1e3,20) y = x**2 formatter = ScalarFormatter() formatter.set_scientific(True) formatter.set_powerlimits((-3,3)) fig = plt.figure() ax = fig.add_subplot(111) ax.xaxis.set_major_formatter(formatter) ax.yaxis.set_major_formatter(formatter) ax.plot(x,y) plt.show() #################################################### |
|
From: Wayne W. <sie...@sb...> - 2009-12-08 02:27:55
|
I thought the console was the only way to use IPython. I go to Start->Allprograms->IPython, and select IPython. Oh, I see *Console" is something of a replacement for the Win Cmd Console. Is there some site that shows off it's features? Gary Ruben wrote: > In Windows I recommend running iPython inside Console > <http://sourceforge.net/projects/console/> > particularly for its vastly improved copy and pasting. > > Gary R. > > PH...@Ge... wrote: > >> Third Google result for "copy paste in DOS prompt" >> http://www.copy--paste.org/copy-paste-between-dos-windows.htm >> >> Note that right-clicking is going to execute behavior, not bring up a contextual menu. >> >> -p >> >> >>> -----Original Message----- >>> From: Wayne Watson [mailto:sie...@sb...] >>> Sent: Monday, December 07, 2009 12:57 PM >>> To: Gary Pajer >>> Cc: mat...@li... >>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to >>> Get Started on IPython >>> >>> Right-click does nothing on the IPython window. >>> >>> The Windows command console is, I think, a lost cause all together. I've >>> tried a right-click on it with the same result as in IPython. >>> I'm using Win XP, and I hope they improve on Win 7, which I plan to >>> install on all my machines this month. >>> >>> > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet "... humans'innate skills with numbers isn't much better than that of rats and dolphins." -- Stanislas Dehaene, neurosurgeon Web Page: <www.speckledwithstars.net/> |
|
From: Wayne W. <sie...@sb...> - 2009-12-08 02:23:30
|
OK, here I go. Quick Edit is checked, and I'm running from what looks like the Win XP command console. I am not in full screen mode. I've applied changes to the window. It has scroll bars side and bottom. I've moused the area, and now am going to Edit on the window menu. It works! I just pasted it into a txt file. Thanks. Pretty convoluted, but it works. Is it possible to paste from outside? For example copy and paste from a txt file. PH...@Ge... wrote: > Third Google result for "copy paste in DOS prompt" > http://www.copy--paste.org/copy-paste-between-dos-windows.htm > > Note that right-clicking is going to execute behavior, not bring up a contextual menu. > > -p > > >> -----Original Message----- >> From: Wayne Watson [mailto:sie...@sb...] >> Sent: Monday, December 07, 2009 12:57 PM >> To: Gary Pajer >> Cc: mat...@li... >> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to >> Get Started on IPython >> >> Right-click does nothing on the IPython window. >> >> The Windows command console is, I think, a lost cause all together. I've >> tried a right-click on it with the same result as in IPython. >> I'm using Win XP, and I hope they improve on Win 7, which I plan to >> install on all my machines this month. >> >> Gary Pajer wrote: >> >>> On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson >>> <sie...@sb... <mailto:sie...@sb...>> >>> wrote: >>> >>> Good. Thanks. Interesting that ls and pwd are used for Win, but >>> >> that's >> >>> fine. How do I copy parts of the window? All I can do at the >>> moment is >>> sweep out a rectangular area with the mouse. It looks like I >>> underestimated the need for automagic. >>> >>> >>> >>> Copy and paste from a Windows command shell is different that copy and >>> paste from *nix command shell. >>> >>> Right-click in the command window >>> Choose Mark from the drop-down menu >>> Select the (rectangular) region of text you want to copy. >>> Hit Return. >>> >>> That does a copy operation. Then go to your other application, and >>> paste however you like. >>> >>> >>> >>> >>> >>> David Arnold wrote: >>> > Depends on whether "automagic" is enabled or not. If automagic >>> is OFF, >>> > you need to enter the %, as in %cd. If automagic is ON (the >>> default), >>> > then you don't need to enter the %, as in cd. >>> > >>> > automagic can be toggled on and off as follows: >>> > >>> > In [8]: automagic >>> > >>> > Automagic is OFF, % prefix IS needed for magic functions. >>> > >>> > In [9]: %automagic >>> > >>> > Automagic is ON, % prefix NOT needed for magic functions. >>> > >>> > On my mac, I can change to my "home" directory as follows: >>> > >>> > In [10]: cd >>> > /Users/darnold >>> > >>> > I can list the files in this directory with: >>> > >>> > In [11]: ls >>> > Desktop/ Movies/ context/ >>> > Documents/ Music/ java.log.344 >>> > Downloads/ NetBeansProjects/ java.log.415 >>> > Dropbox/ Pictures/ luatex-cache/ >>> > Library/ Public/ matlab_crash_dump.344 >>> > LizThesis/ Sites/ matlab_crash_dump.415 >>> > >>> > I can cd into my Sites folder with: >>> > >>> > In [12]: cd Sites >>> > /Users/darnold/Sites >>> > >>> > I can get the current directory with: >>> > >>> > In [13]: pwd >>> > Out[13]: '/Users/darnold/Sites' >>> > >>> > I can move up a directory level with: >>> > >>> > In [14]: cd .. >>> > /Users/darnold >>> > >>> > >>> > Hope this helps. >>> > >>> > D. >>> > >>> > >>> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote: >>> > >>> >> I've seen the tutorial, but need something more. How do I know >>> >> what >> >>> >> folder I'm in? How do I move from where I am to, for example, >>> >> C:\abc\def? So far I've tried various combinations like this: >>> >> >>> >> cd .. >>> >> cd C:\ >>> >> pwd (yes, I know it's not windows) >>> >> >>> >> I tried %cd .., and that may have moved me but I seem to get >>> back to the >>> >> same place. >>> >> >>> >> I seem to be in C:\Documents and Settings\administrator. If I >>> doa %cp >>> >> ..\\ it looks like I get to C:\, but follwing that with pwd >>> gets me back >>> >> to where I started--C:\Documents and Settings\administrator. >>> >> >>> >> If I want to execute a program with %run, I need to be where >>> abc.py is >>> >> or, perhaps say something like %run C:\myPyPrograms\abc.py. >>> >> Dir doesn't work and I haven't been able to even see what's in >>> >> the >> >>> >> folder. >>> >> >>> >> >>> >> -- >>> >> Wayne Watson (Watson Adventures, Prop., Nevada City, >>> >> CA) >> >>> >> >>> >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) >>> >> Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet >>> >> >>> >> "... humans'innate skills with numbers isn't much >>> >> better than that of rats and dolphins." >>> >> -- Stanislas Dehaene, neurosurgeon >>> >> >>> >> Web Page: <www.speckledwithstars.net/ >>> <http://www.speckledwithstars.net/>> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------- >>> >> ----------- >> >>> >> >>> >> Join us December 9, 2009 for the Red Hat Virtual Experience, >>> >> a free event focused on virtualization and cloud computing. >>> >> Attend in-depth sessions from your desk. Your couch. Anywhere. >>> >> http://p.sf.net/sfu/redhat-sfdev2dev >>> >> _______________________________________________ >>> >> Matplotlib-users mailing list >>> >> Mat...@li... >>> <mailto:Mat...@li...> >>> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> > >>> > >>> >>> -- >>> Wayne Watson (Watson Adventures, Prop., Nevada City, CA) >>> >>> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) >>> Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet >>> >>> "... humans'innate skills with numbers isn't much >>> better than that of rats and dolphins." >>> -- Stanislas Dehaene, neurosurgeon >>> >>> Web Page: <www.speckledwithstars.net/ >>> <http://www.speckledwithstars.net/>> >>> >>> >>> ------------------------------------------------------------------- >>> >> ----------- >> >>> Join us December 9, 2009 for the Red Hat Virtual Experience, >>> a free event focused on virtualization and cloud computing. >>> Attend in-depth sessions from your desk. Your couch. Anywhere. >>> http://p.sf.net/sfu/redhat-sfdev2dev >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> <mailto:Mat...@li...> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> >> -- >> Wayne Watson (Watson Adventures, Prop., Nevada City, CA) >> >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) >> Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet >> >> "... humans'innate skills with numbers isn't much >> better than that of rats and dolphins." >> -- Stanislas Dehaene, neurosurgeon >> >> Web Page: <www.speckledwithstars.net/> >> >> >> ------------------------------------------------------------------------- >> ----- >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet "... humans'innate skills with numbers isn't much better than that of rats and dolphins." -- Stanislas Dehaene, neurosurgeon Web Page: <www.speckledwithstars.net/> |
|
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-12-08 01:06:41
|
2009/12/1 John Hunter <jd...@gm...>: > Some of this code is particularly tricky and difficult to get right > across use cases (eg composite figimages) and this is exacerbated by > the fact that this part of the codebase is lightly used. So testing > will be helpful. I'm also posting an svn diff for other devs to > review. I've finally gotten around to installing from SVN HEAD in a virtual python environment and it works perfectly for my needs. Thanks very much for this :) Cheers, Jason |