SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S




1
(19)
2
(28)
3
(8)
4
(15)
5
(20)
6
(23)
7
(12)
8
(11)
9
(13)
10
(4)
11
(9)
12
(34)
13
(33)
14
(24)
15
(15)
16
(12)
17
(8)
18
(5)
19
(5)
20
(6)
21
(10)
22
(9)
23
(18)
24
(10)
25
(7)
26
(13)
27
(18)
28
(29)
29
(4)
30
(5)
31
(2)

Showing 7 results of 7

From: Jae-Joon L. <lee...@gm...> - 2009年10月25日 23:42:56
Using axes_grid toolkit is not recommended unless you're familiar with
some of the internals of matplotlib. Instead, you should use spines.
While the current example gallery does not have such an example, I
just added one in the svn.
The result should be identical to the axes_grid example. While not
tested, I believe the example will work fine with matplotlib 0.99.1.
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/examples/pylab_examples/multiple_yaxis_with_spines.py?revision=7908&view=markup
Regards,
-JJ
On Sat, Oct 24, 2009 at 2:40 PM, Gökhan Sever <gok...@gm...> wrote:
>
>
> On Sat, Oct 24, 2009 at 1:02 PM, Dr. Phillip M. Feldman
> <pfe...@ve...> wrote:
>>
>> I'd like to create a plot showing motor current, efficiency, speed, and
>> output power versus input power, with all four curves on a single plot and
>> four y axes. I've looked at the example in
>> http://matplotlib.sourceforge.net/examples/api/two_scales.html, and also
>> at
>> the doc string for twinx. It looks as though twinx will let me create two
>> y
>> axes, but in this case I need four. Can this be done with matplotlib?
>> --
>> View this message in context:
>> http://www.nabble.com/Possible-to-get-four-y-axes-on-a-single-plot--tp26041500p26041500.html
>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>
>>
>
> Using axes_grid you can get multiple y-axes. See for example:
>
> http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html
>
>
>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>
>
>
> --
> Gökhan
>
> ------------------------------------------------------------------------------
> 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
>
>
From: George N. <gn...@go...> - 2009年10月25日 23:30:35
Hi,
The excellent transformations tutorial
http://matplotlib.sourceforge.net/users/transforms_tutorial.html
explained exactly what I needed to do to include inserts in my figures.
Furthermore, it suggested to me that I should be able to do without
some very ugly code I had written to convert the bounding box for a
new axis instance from Axes coordinates to Figure coordinates, by
simply writing
ax2 = fig.add_axes([l_axes,b_axes,width_axes,height_axes],transform=ax.transAxes)
However, this doesn't seem to work.
The workaround, suggested by Jae-Joon Lee earlier this year --
http://www.nabble.com/Adding-custom-axes-within-a-subplot-td22159536.html
Bbox = matplotlib.transforms.Bbox.from_bounds(l_axes,b_axes,width_axes,height_axes)
trans = ax.transAxes + fig.transFigure.inverted()
l, b, w, h = matplotlib.transforms.TransformedBbox(Bbox, trans).bounds
ax2 = fig.add_axes([l, b, w, h])
is far more elegant than my original code, but it seems a pity that
fig.add_axes can't accept the transform directly.
Regards, George Nurser.
From: Eric F. <ef...@ha...> - 2009年10月25日 17:39:36
Dudel wrote:
> Hi,
> 
> I'm using 0.99.1.1 of matplotlib as provided by the latest Enthought Python
> Distribution. When I try to plot a matrix with pyplot.imshow() I get all
> kinds of error messages, unless vmin and vmax are specified. Plotting an
> array instead works. I.e.:
> 
> y=matrix('1 2 3')
> 
> imshow(y) #fails
> imshow(y, vmin=1, vmax=3) #works
> imshow(array(y)) #works
> 
> Is that a bug?
> 
> Cheers
I was afraid of this sort of thing cropping up with matrices. They 
modify basic ndarray behavior too much. I guess instead of using 
np.asanyarray we need to make our own input-processing function that 
explicitly detects matrices and converts them to ndarrays. We could 
call it "anysensiblearray".
Eric
From: dfdf <df...@ma...> - 2009年10月25日 15:50:52
how do i place ticks labels between ticks (not below ticks)
for example: when plotting a the stock price over time i would like the x
axis minor ticks to display months and the years to show up between
consecutive x axis major ticks (not just below the major ticks)
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---
 jan feb mar apr may jun jul aug sep oct nov dec jan feb mar apr may jun
jul aug sep
 2008 
2009
works best with fixed fonts
-- 
View this message in context: http://www.nabble.com/place-labels-between-ticks-tp26047949p26047949.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Skip M. <sk...@po...> - 2009年10月25日 15:37:29
I'm making progress with my little CSV file viewer. I'm doing this
on my Mac, so to make things easier on myself I just installed
the Enthought distribution, avoiding any issues about installing
numpy, matplotlib, etc. As a result I'm using matplotlib 0.99.1.1.
For the minimal gui I decided to just use Tkinter (no gtk in the
Enthought distro apparently). I can select columns to plot, clear
the plot, etc but I can't resize the matplotlib window using the
MacOSX backend. When I roam around the corners of the plot window
or the buttons at the bottom I get error messages like:
 RCNE SendEventToEventTarget (suom 8 ) failed, -9870
When I use the TkAgg backend no plot window appears at all. (I
installed TkAqua. Dunno if that makes a difference.)
Any ideas about how to figure out what's going on?
Thanks,
Skip Montanaro
From: Jeff W. <jef...@no...> - 2009年10月25日 14:02:06
kkondo wrote:
> Hello
>
> I want to get the shoreline of Malaren lake as 
> http://en.wikipedia.org/wiki/File:La3-demis-malaren.png. But I find 
> that the following Matplotlib-Basemap program does not draw its 
> shoreline but its islands. Is it the flaw of GSHHS?
>
>
> from mpl_toolkits.basemap import Basemap
> import matplotlib.pyplot as plt
> m = Basemap(width=180000,height=90000,
> resolution='f',projection='tmerc',lon_0=17.5,lat_0=59.5)
> plt.clf()
> m.drawcoastlines()
> m.fillcontinents(color='coral',lake_color='aqua')
> m.drawmapboundary(fill_color='aqua')
> m.drawrivers(color='b')
> plt.show()
>
>
> Sincerely,
> Kentaro Kondo
>
>
Kentaro: Apparently it's a flaw in GSHHS. I tried the online line map 
creator at http://www.aquarius.geomar.de/cgi-bin/map-cgi.pl (which uses 
GMT, which is the source of GSSHS) and got the same thing. It's 
possible that it's fixed in the latest version of GSHHS (1.10) - I'll 
take a look and let you know.
-Jeff
From: Nick H. <wee...@ya...> - 2009年10月25日 01:10:17
Hello all,
I am trying to plot things from C using pylab. The configuration:
Window XP 32 bits
Python-2.6.3
numpy-1.3.0
matplotlib-0.99.1.
I can easily do this on Linux, but the same code does not work on Windows. Here is a test program that tries to import pylab:
#include <stdio.h>
#include <Python.h>
int main(void)
{
 PyObject * module = NULL;
 Py_Initialize();
 module = PyImport_ImportModule("matplotlib.pylab");
 if(module == NULL || module == Py_None)
 {
 printf("no\n");
 PyErr_Print();
 PyErr_Clear();
 }
 else
 {
 printf("yes\n");
 }
 Py_Finalize();
 return 0;
}
The code above works fine with Python2.6 and Linux. However, on Windows it fails; here is the output:
no
Traceback (most recent call last):
 File "C:\Python26\lib\site-packages\matplotlib\pylab.py", line 206, in <module>
 from matplotlib import mpl # pulls in most modules
 File "C:\Python26\lib\site-packages\matplotlib\mpl.py", line 1, in <module>
 from matplotlib import artist
 File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 5, in <module>
 from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
 File "C:\Python26\lib\site-packages\matplotlib\transforms.py", line 34, in <module>
 from matplotlib._path import affine_transform
ImportError: DLL load failed: The specified module could not be found.
Has anybody tried this?
Thanks!
Nick
 

Showing 7 results of 7

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /