David Erickson | 1 May 2012 12:42
Picon
Favicon

symlog linear to log transition plot position?

Hi I need to use the symlog yscale in my graph, I have a lot of data 
that needs to be displayed linearly, with a small fraction at the upper 
end of the range that needs to be displayed in log scale due to its 
distance from the main data.  The symlog scale works great, however I'd 
like to adjust the actual vertical graph position where it crosses from 
linear to log (not the threshold), because right now only ~25% of the y 
space is being given to linear, and I'd like it to be more like 80%.  Is 
this possible?

Thanks!
David

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Benjamin Root | 1 May 2012 14:41
Picon
Favicon

Re: symlog linear to log transition plot position?



On Tue, May 1, 2012 at 6:42 AM, David Erickson <derickso-FGKo4X94FMn2fBVCVOL8/A@public.gmane.org> wrote:
Hi I need to use the symlog yscale in my graph, I have a lot of data
that needs to be displayed linearly, with a small fraction at the upper
end of the range that needs to be displayed in log scale due to its
distance from the main data.  The symlog scale works great, however I'd
like to adjust the actual vertical graph position where it crosses from
linear to log (not the threshold), because right now only ~25% of the y
space is being given to linear, and I'd like it to be more like 80%.  Is
this possible?

Thanks!
David


Isn't linthreshy what you are looking for?  It denotes the range where the scale is linear.  So, if it is 25, then from -25 to 25 the scale will be linear.  After 25, it will be log.

Maybe I am missing something in your description?

Cheers!
Ben Root

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Benjamin Root | 1 May 2012 15:56
Picon
Favicon

Re: probable issues with Axes3D.scatter working unusually?



On Mon, Apr 30, 2012 at 4:02 PM, Tanim Islam <tanim.islam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Yes, sorry about that. I hope this now works.

Tanim Islam


I can confirm your results.  I am looking into it.  What version of matplotlib are you using?

Ben Root

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Alexis Praga | 1 May 2012 17:21
Picon
Favicon

Documentation

Hi,

The documention on building matplotlib from source (
http://matplotlib.sourceforge.net/users/installing.html )
says the following :

"If you are on debian/ubuntu, you can get all the dependencies
required to build matplotlib with:
sudo apt-get build-dep python-matplotlib"

However, doing so will force use to install over 800Mo of useless packages.
The dependencies mentioned after that (pytvhon,numpy, libpng,
freetype) are sufficient for building from source.
Could you edit that ?

Thanks

--
Alexis Praga

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Alexis Praga | 1 May 2012 17:22
Picon
Favicon

Re: Documentation

Actually, you will still need "python-dev" for compiling.

Sorry.

On Tue, May 1, 2012 at 5:21 PM, Alexis Praga <alexis.praga@...> wrote:
> Hi,
>
> The documention on building matplotlib from source (
> http://matplotlib.sourceforge.net/users/installing.html )
> says the following :
>
> "If you are on debian/ubuntu, you can get all the dependencies
> required to build matplotlib with:
> sudo apt-get build-dep python-matplotlib"
>
> However, doing so will force use to install over 800Mo of useless packages.
> The dependencies mentioned after that (pytvhon,numpy, libpng,
> freetype) are sufficient for building from source.
> Could you edit that ?
>
>
> Thanks
>
> --
> Alexis Praga

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Michael Droettboom | 1 May 2012 18:26

Re: Documentation

Can you provide a list of all of the packages that "apt-get build-dep 
python-matplotlib" installs?  I think there's more required than what 
you listed.  For example, it installs a C++ compiler, which is 
required.  We can't assume the user has anything already, which is why 
build-dep is so convenient.

Mike

On 05/01/2012 11:21 AM, Alexis Praga wrote:
> Hi,
>
> The documention on building matplotlib from source (
> http://matplotlib.sourceforge.net/users/installing.html )
> says the following :
>
> "If you are on debian/ubuntu, you can get all the dependencies
> required to build matplotlib with:
> sudo apt-get build-dep python-matplotlib"
>
> However, doing so will force use to install over 800Mo of useless packages.
> The dependencies mentioned after that (pytvhon,numpy, libpng,
> freetype) are sufficient for building from source.
> Could you edit that ?
>
>
> Thanks
>
> --
> Alexis Praga
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Tanim Islam | 1 May 2012 19:20
Picon
Gravatar

Re: probable issues with Axes3D.scatter working unusually?

Hello,

I find this problem on matplotlib version 1.0.1

Tanim Islam

On Tue, 1 May 2012, Benjamin Root wrote:

> 
> 
> On Mon, Apr 30, 2012 at 4:02 PM, Tanim Islam <tanim.islam@...> wrote:
>       Yes, sorry about that. I hope this now works.
>
>       Tanim Islam
> 
> 
> I can confirm your results.  I am looking into it.  What version of
> matplotlib are you using?
> 
> Ben Root
> 
> 
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Elliot Saba | 1 May 2012 21:04
Picon
Gravatar

tight_layout() causes RuntimeError on OSX

Hey guys, I'm trying to use tight_layout() to fix up some subplot grossness, but whenever I call it, I get:


Traceback (most recent call last):
  File "test.py", line 16, in <module>
    plt.tight_layout()
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", line 1056, in tight_layout
    fig.tight_layout(pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/figure.py", line 1415, in tight_layout
    pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 117, in auto_adjust_subplotpars
    tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/axes.py", line 8396, in get_tightbbox
    bb.append(self.title.get_window_extent(renderer))
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/text.py", line 743, in get_window_extent
    bbox, info = self._get_layout(self._renderer)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/text.py", line 296, in _get_layout
    ismath=False)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 164, in get_text_width_height_descent
    width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL

I've googled around, but no answers have been found.  Is this a known issue, and if it's not, how can I go about fixing it?
Thanks,
-E
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Tony Yu | 2 May 2012 03:45
Picon
Gravatar

Re: tight_layout() causes RuntimeError on OSX



On Tue, May 1, 2012 at 3:04 PM, Elliot Saba <staticfloat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hey guys, I'm trying to use tight_layout() to fix up some subplot grossness, but whenever I call it, I get:

Traceback (most recent call last):
  File "test.py", line 16, in <module>
    plt.tight_layout()
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", line 1056, in tight_layout
    fig.tight_layout(pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/figure.py", line 1415, in tight_layout
    pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 117, in auto_adjust_subplotpars
    tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/axes.py", line 8396, in get_tightbbox
    bb.append(self.title.get_window_extent(renderer))
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/text.py", line 743, in get_window_extent
    bbox, info = self._get_layout(self._renderer)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/text.py", line 296, in _get_layout
    ismath=False)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 164, in get_text_width_height_descent
    width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL

I've googled around, but no answers have been found.  Is this a known issue, and if it's not, how can I go about fixing it?
Thanks,
-E


When I run the macosx backend (which appears to be what you're using), I get the following output:

    tight_layout : falling back to Agg renderer

and the figure appears to be rendered with TkAgg . So it appears that it's a known issue on the macosx backend. And, apparently, the suggested work-around is to use an Agg backend.

-Tony

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Elliot Saba | 2 May 2012 05:18
Picon
Gravatar

Re: tight_layout() causes RuntimeError on OSX

That does indeed work.  Thank you.

-E

On Tue, May 1, 2012 at 6:45 PM, Tony Yu <tsyu80-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:


On Tue, May 1, 2012 at 3:04 PM, Elliot Saba <staticfloat <at> gmail.com> wrote:
Hey guys, I'm trying to use tight_layout() to fix up some subplot grossness, but whenever I call it, I get:

Traceback (most recent call last):
  File "test.py", line 16, in <module>
    plt.tight_layout()
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", line 1056, in tight_layout
    fig.tight_layout(pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/figure.py", line 1415, in tight_layout
    pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 117, in auto_adjust_subplotpars
    tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/axes.py", line 8396, in get_tightbbox
    bb.append(self.title.get_window_extent(renderer))
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/text.py", line 743, in get_window_extent
    bbox, info = self._get_layout(self._renderer)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/text.py", line 296, in _get_layout
    ismath=False)
  File "/Users/<username>/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 164, in get_text_width_height_descent
    width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL

I've googled around, but no answers have been found.  Is this a known issue, and if it's not, how can I go about fixing it?
Thanks,
-E


When I run the macosx backend (which appears to be what you're using), I get the following output:

    tight_layout : falling back to Agg renderer

and the figure appears to be rendered with TkAgg . So it appears that it's a known issue on the macosx backend. And, apparently, the suggested work-around is to use an Agg backend.

-Tony


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Gmane