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
(17)
2
(3)
3
(2)
4
(11)
5
(8)
6
(22)
7
(16)
8
(9)
9
(14)
10
(1)
11
(8)
12
(5)
13
(7)
14
(10)
15
(28)
16
(8)
17
(20)
18
(6)
19
(5)
20
(15)
21
(8)
22
(7)
23
(14)
24
(10)
25
(6)
26
(8)
27
(9)
28
(11)
29
(13)
30
(20)

Showing 5 results of 5

From: Neal B. <ndb...@gm...> - 2011年09月12日 13:06:33
Neal Becker wrote:
> Actually, though, I didn't want to plot 2 different sets of data as in that
> example, I want 1 set of data plotted with 2 different x-axis (different
> units). Any suggestion on modifying this example to accomplish this?
> 
> import numpy as np
> import matplotlib.pyplot as plt
> from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
> 
> fig = plt.figure(figsize=(10,8))
> host = SubplotHost(fig, 111)
> fig.add_subplot(host)
> parx = host.twiny()
> 
> parx.axis["top"].set_visible(False)
> offset = 0, -50
> new_axisline = parx.get_grid_helper().new_fixed_axis
> parx.axis["bottom"] = new_axisline(loc="bottom", axes=parx, offset=offset)
> parx.axis["bottom"].label.set_visible(True)
> 
> hplt, = host.plot(np.random.rand(100))
> p2, = parx.plot(np.linspace(0,20,100), np.random.rand(100)*5.0,
> color='green')
> 
> plt.show()
> 
OK, answer my own question. Just remove the line 'parx.plot(...'). I didn't 
realize that I'd get the second axis drawn without that plot call, but it works 
fine.
From: Paul N. <pno...@gm...> - 2011年09月12日 12:30:18
I have the HTML5 Canvas backend working on an Ubuntu machine using
the latest EPD distribution.
However, I am unable to get it to work through an ssh tunnel.
- I create a tunnel forwarding port 9000 on the Ubuntu host machine 
through a firewall machine to port 9000 on my local client.
- I run examples/subplot_demo.py in a separate ssh-tunneled terminal
- I open http://127.0.0.1:9000 in Google Chrome on the client.
I get the HTML 5 Canvas window, but no plot appears and it says 
'Disconnected'. Same thing happens if I open a browser in a Gnome 
session on the host. Running the example on the host in a Gnome 
session and viewing from a client does not work either.
But running the same example from a terminal on the host _and_ viewing it in a 
Gnome session on the host works.
When I run the example, it tries to open a terminal based browser like
lynx and w3m. I uninstalled these applications and now get nothing, but 
this may be an issue. On the host, it opens the window in Chrome automatically
 and starts the browser if necessary. Is there a way to stop this behavior?
Thanks,
Paul
From: Neal B. <ndb...@gm...> - 2011年09月12日 11:08:36
Actually, though, I didn't want to plot 2 different sets of data as in that 
example, I want 1 set of data plotted with 2 different x-axis (different units).
Any suggestion on modifying this example to accomplish this?
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
fig = plt.figure(figsize=(10,8))
host = SubplotHost(fig, 111)
fig.add_subplot(host)
parx = host.twiny()
parx.axis["top"].set_visible(False)
offset = 0, -50
new_axisline = parx.get_grid_helper().new_fixed_axis
parx.axis["bottom"] = new_axisline(loc="bottom", axes=parx, offset=offset)
parx.axis["bottom"].label.set_visible(True)
hplt, = host.plot(np.random.rand(100))
p2, = parx.plot(np.linspace(0,20,100), np.random.rand(100)*5.0,
color='green')
plt.show()
From: Fernando P. <fpe...@gm...> - 2011年09月12日 06:23:29
Hi all,
SC is the largest conference focused on high-performance computing,
this year it will be held in Seattle:
http://sc11.supercomputing.org/
and as part of the conference, a Python-focused workshop is being
organized. The deadline for papers is coming up soon (Sept 19), so if
you are interested in participating there is still time to get your
submission ready! Papers up to 10 pages are welcome on any of the
following topics:
 Python-based scientific applications and libraries
 High performance computing
 Parallel Python-based programming languages
 Scientific visualization
 Scientific computing education
 Python performance and language issues
 Problem solving environments with Python
 Performance analysis tools for Python application
For full details, please see:
http://www.dlr.de/sc/desktopdefault.aspx/tabid-1183/1638_read-31733/
From: Gökhan S. <gok...@gm...> - 2011年09月12日 01:37:30
The master is here. JJ had showed me those multi axes tricks and he is back
again with the plenty of changes to the axes_grid toolkit.
The best thing to do is to make a new clone from the master repo and
experiment.
On Sun, Sep 11, 2011 at 1:37 PM, Neal Becker <ndb...@gm...> wrote:
> Jae-Joon Lee wrote:
>
> > On Sun, Sep 11, 2011 at 10:16 PM, Neal Becker <ndb...@gm...>
> wrote:
> >> Yes, that's very helpful. Just one thing. How would I get a bit more
> bottom
> >> margin on the main figure to leave more room for the extra axis?
> >>
> >> I'm using this as an example. I experimented with plt.subplots_adjust,
> which
> >> seems like it might do the right thing. Is this the 'best' approach?
> >> (I really don't know what all these methods do, just guessing)
> >
> > Yes, you need to fiddle with subplots_adjust command. The current
> > development branch of matplotlib (not yet released) has a new function
> > "tight_layout", which does this automatically for you.
> > Regards,
> >
> > -JJ
> Looking forward to that. Any idea of an ETA for a release?
>
>
>
> ------------------------------------------------------------------------------
> Using storage to extend the benefits of virtualization and iSCSI
> Virtualization increases hardware utilization and delivers a new level of
> agility. Learn what those decisions are and how to modernize your storage
> and backup environments for virtualization.
> http://www.accelacomm.com/jaw/sfnl/114/51434361/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
Gökhan

Showing 5 results of 5

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 によって変換されたページ (->オリジナル) /