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





Showing 6 results of 6

From: Uri L. <las...@mi...> - 2011年01月16日 22:41:31
Hi all,
Does there already exist some python implementation (in MPL or other) of an
easy-to-use 1D scale transformation? This is something analogous to
processing's map function or protovis's scale functionality. It would work
something like:
s = linear().domain(5,100).range(13000,15000)
or
s = root(p=5).domain(0.1,0.6).range(0,1)
There could be multiple versions, including linear, log, symlog, root
(power), discrete, etc.
Thanks!
Uri
...................................................................................
Uri Laserson
Graduate Student, Biomedical Engineering
Harvard-MIT Division of Health Sciences and Technology
M +1 917 742 8019
las...@mi...
From: Drew S. <dre...@gm...> - 2011年01月16日 21:15:16
Ben,
Sorry to take so long getting back.
I found a solution. Perhaps not the best one but I discovered that using
close() after a show() or save() worked for me. Stumbled across it a day or
two after posting.
Drew
Benjamin Root-2 wrote:
> 
> On Mon, Jan 3, 2011 at 11:36 AM, Drew Stokes <dre...@gm...>
> wrote:
> 
>>
>> Hi,
>> I'm very new to Matplotlib and python but I ma getting excellent results
>> in
>> what I am trying to achieve. That said I have come up against an issue I
>> can't seem to find a resolution to and was wondering if someone here may
>> be
>> able to help out.
>>
>> I have a script that generates a number of plots. The first plot comes
>> out
>> fine but there seems to be a little hang over in regards to format or
>> data
>> into the following plots. I have alternated the script by putting each
>> plot
>> first and the same applies the first plot is fine the rest are ok but
>> there
>> are odd points plotted. I wonder if there is a method of flushing or
>> clearing formats etc that I could use. Sorry if I'm getting terminology
>> wrong this is all still rather new to me.
>>
>> Drew
>>
> 
> Drew,
> 
> Do you have a very simple script that reproduces the issue you are
> experiencing? From the script, we might be able to spot what is wrong.
> 
> Ben Root
> 
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and, 
> should the need arise, upgrade to a full multi-node Oracle RAC database 
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://old.nabble.com/clearing-previous-format-changes-tp30579911p30676161.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Drew S. <dre...@gm...> - 2011年01月16日 21:15:07
Ben,
Sorry to take so long getting back.
I found a solution. Perhaps not the best one but I discovered that using
close() after a show() or save() worked for me. Stumbled across it a day or
two after posting.
Drew
Benjamin Root-2 wrote:
> 
> On Mon, Jan 3, 2011 at 11:36 AM, Drew Stokes <dre...@gm...>
> wrote:
> 
>>
>> Hi,
>> I'm very new to Matplotlib and python but I ma getting excellent results
>> in
>> what I am trying to achieve. That said I have come up against an issue I
>> can't seem to find a resolution to and was wondering if someone here may
>> be
>> able to help out.
>>
>> I have a script that generates a number of plots. The first plot comes
>> out
>> fine but there seems to be a little hang over in regards to format or
>> data
>> into the following plots. I have alternated the script by putting each
>> plot
>> first and the same applies the first plot is fine the rest are ok but
>> there
>> are odd points plotted. I wonder if there is a method of flushing or
>> clearing formats etc that I could use. Sorry if I'm getting terminology
>> wrong this is all still rather new to me.
>>
>> Drew
>>
> 
> Drew,
> 
> Do you have a very simple script that reproduces the issue you are
> experiencing? From the script, we might be able to spot what is wrong.
> 
> Ben Root
> 
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and, 
> should the need arise, upgrade to a full multi-node Oracle RAC database 
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://old.nabble.com/clearing-previous-format-changes-tp30579911p30676160.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Ryan N. <rne...@gm...> - 2011年01月16日 19:12:05
Hello everyone,
I frequently use subscripts and superscripts in text on my plots, but 
I've noticed that the line and character spacing (kerning ?) is not 
always as I would expect. For most things, this is not a problem. 
However, I would occasionally like various text objects to line up with 
one another, and at these times, this spacing difference can become a issue.
I guess I have a couple questions at this point... First, is this 
expected? Second, is there any (simple) way I can control the line and 
character spacing? I see there is a 'linespacing' keyword argument; 
however, this seems to be a multiplier relative to the total text height 
for each line not an absolute, fixed height of every line. For character 
spacing, is there a special symbol I could insert to add or removing 
spacing between characters?
I'm using Matploblib 1.0.0 that ships with Python(x,y) for Windows. 
Below is a test script that highlights these differences (at least on my 
system).
Any help or suggestions are most appreciated. (I don't know much TeX, so 
I appologize if these differences are obvious for those in the know.)
Ryan
import matplotlib.pyplot as plt
plt.rc('font', size=25.0)
plt.text(0.25, 0.25,
 'X1Y2\nX1Y2\nX$_1$Y$_2$\nX$_{1}$Y$_{2}$\n$X_1Y_2$\n$X_{1}Y_{2}$')
plt.text(0.75, 0.25,
 'X1Y2\nX1Y2\nX$^1$Y$^2$\nX$^{1}$Y$^{2}$\n$X^1Y^2$\n$X^{1}Y^{2}$')
plt.text(0.5, 0.25, 'X$_{1}$Y$_{2}$\nX$^{1}$Y$^{2}$\n$X_1Y_2$\n$X^1Y^2$')
plt.show()
From: Larry E. <cpp...@su...> - 2011年01月16日 12:11:17
subplot(numRows, numCols, plotNum)
On my local disk, the file:
file:///usr/share/doc/python-matplotlib-doc/html/api/pyplot_api.html#matplotlib.pyplot.subplot
contains:
 subplot(numRows, numCols, plotNum)
 where plotNum = 1 is the first plot number and increasing plotNums
fill rows first. max(plotNum) == numRows * numCols
and then, a little later:
 New subplots that overlap old will delete the old axes.
However, that doc does not explain what a row or column is or what
overlap means.
Is there some way the figure is partitioned into rows and columns and the
subplots appear in these rows and columns. If so, then how is this
partition
done? Does subplot(1,2,1) appear to the left and at same level as
subplot(1,2,2)?
What if there's subplot(1,2,1) and subplot(2,1,1). Do they overlap and
if so, why?
IOW, what's the definition of overlap?
TIA.
 -regards,
 Larry
**update** matplotlib 1.0.0 setup worked on one but did not work on a second Mac OS X 10.6.6. The second one again failed with a missing dependency. It seems to depend on what previous packages may have been installed.
The following seems to be a complete fix:
1. On Mac OS X 10.6.x (in my case...6)
2. Install Apple Xcode (requires registration as an Apple developer)
3. Install MacPorts http://www.macports.org/
4. Check that all library dependencies for matplotlib in Python 2.6 have been satisfied by first running (with Administrator privileges):
	sudo port install py26-matplotlib
(this will use MacPorts script to install matplotlib 1.0.0)
5. (optional) you can reinstall now matplotlib from http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download
**now** it works :-)
PS note to matplotlib developers. The above may suggest that matplotlib may have a dependency that is not present on a virgin OSX Xcode machine but which is incidentally installed by some other package usually present on a developer's machine and so whose absence is not noticed when preparing the installation script.
On 16/01/2011, at 10:22 AM, Leslie Burnett wrote:
> Thank you. You are correct. The matplotlib version 1.0.0 works for me too!
> 
> I will post this reply so that others can be aware that the problem seems to be only with matplotlib version 1.0.1. 
> The previous version matplotlib 1.0.0 works ok with Mac OS X 10.6.6 Snow Leopard and Apple Python 2.6.1
> 
> On 15/01/2011, at 11:04 PM, Kurt Mueller wrote:
> 
>> 
>> Am 15.01.2011 um 12:07 schrieb Leslie Burnett:
>>> My apologies if this question is a bit simple, but I am new to Python, but I think I've done all the RTFM things and still hit a brick wall. I can see from Google that I am not the first to strike this problem, but no solutions seem to be posted.
>>> I am trying to install matplotlib on a Mac OSX 10.6 (Snow Leopard)(OS fully up to date).
>>> When I try to install, I get the error message: 
>>>> lipo: can't open input file: /var/tmp//cctV2zuc.out (No such file or directory)
>>>> error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
>> 
>> 
>> On a fully updated Mac OSX 10.6.6 the installation of
>> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz/download
>> did work for me.
>> 
>> -- 
>> kur...@gm...
>> 
> 

Showing 6 results of 6

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