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 8 results of 8

From: <wa...@we...> - 2011年01月11日 23:31:34
Hi, 
I used the colorbar with the imshow for a while for a while, but now when I 
produce a pdf of svg, light stripes appear in the colorbar. When I try to 
modify the file with inkscape, I see that the stroke color is unset. Is this a 
bug, a feature, or my backend that produces the file. And how can I get rid of 
that?
Regards, Stefan
From: Benjamin R. <ben...@ou...> - 2011年01月11日 20:28:45
On Tue, Jan 11, 2011 at 8:17 AM, Daniel Mader <
dan...@go...> wrote:
> > Interesting... this will need to be investigated a little bit further.
> In
> > the meantime, making a single polycollection with all the pieces seem to
> do
> > the trick for now. I have attached a modified version of your script to
> > demonstrate.
>
> Dear Ben,
>
> this is great news, it works perfectly well! Thanks a million times
> for this great support!
>
> All the best,
> Daniel
>
Oh, btw, could you please file a bug report describing the problem and that
original script? I suspect it is a slightly different problem than the
usual 3d stacking problem. I don't want to forget to look into it.
http://sourceforge.net/tracker/?group_id=80706
Thanks,
Ben Root
From: Benjamin R. <ben...@ou...> - 2011年01月11日 15:43:29
On Tue, Jan 11, 2011 at 8:45 AM, Lebostein <Leb...@gm...> wrote:
>
> I have compared the new and old output. For example the "0.0" in a diagram:
>
> old eps (1.0.0):
>
> 35.223 19.934 m
> 0 0.141 rmoveto
> (0.0) show
> [1 2] 0 setdash
> 0.502 setgray
>
> new eps (1.0.1):
>
> 35.222810 19.933563 translate
> 0.000000 rotate
> 0.000000 0.140625 m /zero glyphshow
> 6.362305 0.140625 m /period glyphshow
> 9.541016 0.140625 m /zero glyphshow
> grestore
> [1 2] 0 setdash
> 0.502 setgray
>
> ...
>
Ah, this bit me yesterday as well. I wanted to edit some labels using
InkScape and it became easier to just modify my original script and just
re-make the image. I know there were some "fixes" recently, but I don't
know the specifics.
Ben Root
From: Lebostein <Leb...@gm...> - 2011年01月11日 14:45:52
I have compared the new and old output. For example the "0.0" in a diagram:
old eps (1.0.0):
35.223 19.934 m
0 0.141 rmoveto
(0.0) show
[1 2] 0 setdash
0.502 setgray
new eps (1.0.1):
35.222810 19.933563 translate
0.000000 rotate
0.000000 0.140625 m /zero glyphshow
6.362305 0.140625 m /period glyphshow
9.541016 0.140625 m /zero glyphshow
grestore
[1 2] 0 setdash
0.502 setgray
...
-- 
View this message in context: http://old.nabble.com/Problem-with-matplotlib-1.0.1-and-psfrag-%28LaTeX%29-tp30644263p30644322.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Lebostein <Leb...@gm...> - 2011年01月11日 14:38:39
Hi,
the eps output of matplotlib 1.0.1 don't work with the LaTeX macro PSfrag
(http://en.wikipedia.org/wiki/PSfrag). In the release notes
(RELEASE_NOTES-1.0.1.txt) I can not find any changes to the eps output. What
have you done?
-- 
View this message in context: http://old.nabble.com/Problem-with-matplotlib-1.0.1-and-psfrag-%28LaTeX%29-tp30644263p30644263.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Daniel M. <dan...@go...> - 2011年01月11日 14:17:29
> Interesting... this will need to be investigated a little bit further. In
> the meantime, making a single polycollection with all the pieces seem to do
> the trick for now. I have attached a modified version of your script to
> demonstrate.
Dear Ben,
this is great news, it works perfectly well! Thanks a million times
for this great support!
All the best,
Daniel
From: Paul I. <piv...@gm...> - 2011年01月11日 08:53:50
Damien Bathory, on 2011年01月11日 15:27, wrote:
> Hi All.
> ...
> I want to change the color of the ticklines set by set_thetagrids(), but I
> am not having any luck.
> ( See black instead of green ticklines here:
> http://i1234.photobucket.com/albums/ff405/dbathory/circum.png )
> 
> Should I be able manipulating the ticklines in this way after calling
> set_theagrids?
> 
> for line in ax.xaxis.get_ticklines():
> line.set_color('g')
> 
> I've also tried using the tick_params() call to set the default tickline
> color, with no luck.
> I've tried this on matplotlib v1.00 and v98.1, with the same results (black
> instead of green).
Hi Damien,
Those aren't ticks, those are grid lines (verify by pressing 'g'
after selecting the axes to toggle the grid on and off).
 ax.grid(color='green')
is what you can use to set the grid line color (and other aspects, like
linewidth, linestyle, alpha, etc).
hope that helps,
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 
From: Damien B. <dba...@am...> - 2011年01月11日 05:33:27
Hi All.
I am trying to create a circumplex (or "rose") plot that looks a bit like
this:
http://www.organizacionakultura.net/slike_fck/image/Ideal%20culture%20profile%20ENG(1).jpg
At the moment I am using a Polar plot and trying to manipulate it so that it
looks more like a circumplex (with each "slice of the cake" corresponding to
a label).
I want to change the color of the ticklines set by set_thetagrids(), but I
am not having any luck.
( See black instead of green ticklines here:
http://i1234.photobucket.com/albums/ff405/dbathory/circum.png )
Should I be able manipulating the ticklines in this way after calling
set_theagrids?
for line in ax.xaxis.get_ticklines():
 line.set_color('g')
I've also tried using the tick_params() call to set the default tickline
color, with no luck.
I've tried this on matplotlib v1.00 and v98.1, with the same results (black
instead of green).
Full code:
#============== START CODE =====================
#!/usr/bin/python
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.projections.polar import PolarAxes
import matplotlib.cm as cm
labels = ['Label A', 'Label B', 'Label C', 'Label D', 'Label E', 'Label F',
'Label G', 'Label H', 'Label I' ]
data = [ 7, 5, 3, 11, 4, 2, 9, 8, 5 ]
max_size = 12
N = len(data)
# This doesn't seem to change the tick color
plt.tick_params(axis='both', which='both', color='g')
fig = plt.figure(figsize=(8,8))
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True)
theta = np.arange(0.0, 2*np.pi, 2*np.pi/N)
radii = data
width = np.pi*2/N
bars = ax.bar(theta, radii, width=width, bottom=0.0)
for r,bar in zip(radii, bars):
 bar.set_facecolor( cm.jet(r/10.))
 bar.set_alpha(0.5)
spoke_angles = theta * 180/np.pi - 180/N
(g_lines, g_labels) = ax.set_thetagrids(spoke_angles, labels, color='r')
for line in ax.xaxis.get_ticklines():
 line.set_color('g') # This doesn't seem to change the tick color either
ax.set_rgrids([10000], []) # Just moving the rgrids out the way for now
fig.savefig('circum.png')
#============== END CODE =====================
Thanks in advance.

Showing 8 results of 8

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