Maybe I understand what he means. How can a user override some value in a
colormap? Lets say, in general user wants to inherit some ready made colormap
but in addition wants to force certain colors to some data items.
M.
Eric Firing wrote:
> On 2014/03/02 1:02 AM, ChaoYue wrote:
>> Dear Eric,
>>
>
er hot spot is setp() artist.py, actually its get_aliases() on line 817,
which again leads to getattr() and callable(). The problem is there are
millions of
their calls.
So, once again, my all my patches attached (figure.py.patch artist.py.patch
have changed).
Martin
Benjamin Root wrote:
>
:(
>
> Thanks!
I am sorry but I just don't have time to fiddle with github. It is just
awkward. I even failed to download
diffs of the changes from
https://github.com/matplotlib/matplotlib/pull/2156/commits.
I rather continue studying runsnake output. ;-)
Martin
>
> Phil
>
Hi,
I am drawing some barcharts and scatter plot and the speed for rendering is
awful once you have
100 000 of dots. I ran python profiler which lead me to .startswith() calls and
some for loops
which append do a list repeatedly. This parts could be still sped up I think
but a first attempt
is
[re-sending with also the 3rd patch file, sorry]
Hi,
I am drawing some barcharts and scatter plot and the speed for rendering is
awful once you have
100 000 of dots. I ran python profiler which lead me to .startswith() calls and
some for loops
which append do a list repeatedly. This parts coul
Hi Nicolas,
Nicolas Mailhot wrote:
>
> Le Mar 9 juillet 2013 15:14, Nicolas Mailhot a écrit :
>>
>> Le Lun 8 juillet 2013 18:18, Martin Mokrejs a écrit :
>
>>> Could you instead just test for "if not self._family"? Tests for
>>> equality
>&g
Nicolas Mailhot wrote:
> Hi,
>
> In matplotlib 1.2.1, the get_name function is not garding against none
> self (unlike other functions); Unfortunately it seems I have a workload
> that makes matplotlib call get_name with None (wasn't the case in 1.2.0).
> I couldn't isolate the exact trigger, whe
t; understanding (maybe I am wrong!). legend and
> hist are all matplotlib.axes.Axes method.
>
> Also, I think it's unrealistic to ask the figure do a nice job for you if
> there are 50 legned handlers and you want to show
> them in 2 columns wit
Hi,
I just hit a broken example at
http://matplotlib.org/examples/pylab_examples/scatter_hist.html?highlight=scatter
$ python scatter_hist.py
Traceback (most recent call last):
File "scatter_hist.py", line 44, in
axHisty.hist(y, bins=bins, orientation='horizontal')
File "/usr/lib64/pyt
t_layout rescaling issue and the
"feature request". ;-)
Maritn
>
> probably this is quite stupid.
>
> cheers,
>
> Chao
>
> On Wed, May 22, 2013 at 1:03 PM, Martin Mokrejs [via matplotlib] <[hidden
> email] > wrote:
>
> Hi Chao,
>
>
e image only vertically.
An optional argument like:
fig.savefig('foobar.png', bbox_inches='tight', keep_fig_width=True)
would maybe do the job for me.
What I still don't understand what is resizing the image in tight_layout.
It doesn't seem to me that just
Hi Ben,
thank you, I don't think I managed to upload the figures attached to the
email, but at
least, the "issue" is opened:
https://github.com/matplotlib/matplotlib/issues/1679
Thanks,
Martin
Benjamin Root wrote:
>
>
> On Sat, Dec 29, 2012 at 4:41 PM, Marti
Hi Ben,
Benjamin Root wrote:
>
>
> On Monday, September 24, 2012, Martin Mokrejs wrote:
>
> Hi,
> I have pie charts with relatively long texts assigned to each slice of
> the pie.
> The text is drawn horizontally. Instead, I would like to have it rota
Hi,
I have pie charts with relatively long texts assigned to each slice of the
pie.
The text is drawn horizontally. Instead, I would like to have it rotated at the
same angle as the slice itself (i.e. centered at the "axis" of the slice). In
this
way the text would not overlap other text of adj
John Hunter wrote:
>
>
>
>
> On Jun 18, 2012, at 6:19 AM, Martin Mokrejs
> wrote:
>
>> Hi,
>> I am running some script in /mnt/blah and while my $HOME disk on a
>> different device filled up
>> because of some other reason. But my script ran
Hi,
I am running some script in /mnt/blah and while my $HOME disk on a different
device filled up
because of some other reason. But my script ran in /mnt/blah died as well while
there is plenty
of space. Here is the stacktrace.
import matplotlib
File "/usr/lib64/python2.7/site-packages/m
Martin Mokrejs wrote:
> Hi,
> I am trying to improve my code where I cannot find out why matplotlib-1.1.0
> does not
> support colors specified as RG tuples. Here is an example.
>
>
>
> import numpy as np
> import matplotlib.pyplot as plt
>
> _nums =
Hi,
I am trying to improve my code where I cannot find out why matplotlib-1.1.0
does not
support colors specified as RG tuples. Here is an example.
import numpy as np
import matplotlib.pyplot as plt
_nums = [160.0, 160.0, 160.0, 95.0, 160.0, 160.0]
_colors = [(0.5019607843137255, 0.0, 0.5019
ext]))
'/usr/share/fonts/mathematica-fonts/Vera.ttf'
>>> font_manager.findfont('monospace')
'/usr/share/fonts/mathematica-fonts/VeraMono.ttf'
>>> font_manager.findfont('sans-serif')
Traceback (most recent call last):
File "", line
Hi,
I wondered why the matplotlib.font_manager.rcParams contains sometimes
escaped minus signs in font names:
>>> font_manager.rcParams['mathtext.sf']
'sans\\-serif'
>>>
>>> font_manager.findfont('sans-serif')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python2.
Benjamin Root wrote:
>
>
> On Thu, Feb 16, 2012 at 3:09 PM, Martin Mokrejs <mailto:mmokr...@fold.natur.cuni.cz>> wrote:
>
> Hi Benjamin,
> thank you for you explanation. My comment is below in the text:
>
> Benjamin Root wrote:
> >
> &g
Hi Benjamin,
thank you for you explanation. My comment is below in the text:
Benjamin Root wrote:
>
>
> On Tue, Feb 14, 2012 at 4:43 PM, Martin Mokrejs <mailto:mmokr...@fold.natur.cuni.cz>> wrote:
>
> Ah, this seems to be the issue that my figsize was growi
window from the shell
ACCEPTS: a w,h tuple with w,h in inches
Nope, it does not work. The print call gives me: [ 8. 6.]. So, this is not a
tuple?
Or python-2.7 issue how is it printed ... I fear? ;-)
Anyway, doing
F.set_size_inches(11.2, 15)
works for me.
Martin
Martin Mokrejs wrote
Hi,
the below code works for me but in case there are few values to be rendered
it chokes (I think this is the culprit or maybe one of the values isn't unique
in those input lists?):
pylab.clf()
if longlegends:
F.set_size_inches( (DefaultSize[0], DefaultSize[1]*2.5) )
_e =
Hi,
I would like to create a bar chart like the attached example but with the
addition
that each bar would have a different color. I tried to learn this from the
examples
on matplotlib web but still do not see a close example for that. ;-)
many thanks,
Martin
<>-
HI,
I have troubles getting to wirk a hitogram plot. I have colors in
RGB as tuples of 3 values and also some colors defined as string,
e.g. 'orange'. I get the folowing error:
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 2332, in
hist
ret = ax.hist(x, bins, range,
26 matches
Mail list logo