[matplotlib-devel] Development issue: Assign labels to colorbar extensions

2014-11-16 Thread j1
I have posted this in the user sub forum as well because i'm not sure that it
is a user issue or development issue.  
Information about my problem and my code are here

http://matplotlib.1069221.n5.nabble.com/Assign-labels-to-colorbar-extensions-user-or-development-issue-td44392.html

  

Is it possible to assign tick labels/values to extensions?

If so, how can I do it



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Development-issue-Assign-labels-to-colorbar-extensions-tp44393.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Development issue: Assign labels to colorbar extensions

2014-11-16 Thread Eric Firing
On 2014/11/16, 10:21 AM, j1 wrote:
> I have posted this in the user sub forum as well because i'm not sure that it
> is a user issue or development issue.
> Information about my problem and my code are here
>
> http://matplotlib.1069221.n5.nabble.com/Assign-labels-to-colorbar-extensions-user-or-development-issue-td44392.html
> 
>
> Is it possible to assign tick labels/values to extensions?

You would have to do it manually; you can put marks and text anywhere 
you want in a matplotlib figure, but there is no mechanism for adding 
ticks to the extensions.  That's simply not what they are for.  They are 
intended only to indicate a single color to which values outside the 
vmin-to-vmax range of the norm are assigned.

>
> If so, how can I do it

It looks like you might be able to achieve what you want *without* using 
extensions, by using a custom colormap and/or norm.  You would extend 
the actual contour levels to include the full range you want "ticked and 
labeled", but you would use the colormap and/or norm to ensure those 
beyond a given range are mapped to the appropriate end color(s).

Eric



--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] tk backend broken (somehow?)

2014-11-16 Thread Benjamin Root
And with my continuing saga of backend-specific things...

I was using conda, but because it does not ship with pygtk support, I had
to manually install pygtk into the conda environment and then install
matplotlib from source. All that seemed to work fine when I worked on Wx
and Gtk examples for my book.

I went back to a (previously working) Tk example to polish it, and I get
all sorts of errors now. I have tried multiple releases of matplotlib from
source (doing a git clean -fxd between them), all with similar errors. In
fact, with master, the error causes a segfault:

ben@tigger:~/Documents/InteractiveMPL$ python chp5/slider_tk.py
Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/ben/miniconda/lib/python2.7/lib-tk/Tkinter.py", line 1486, in
__call__
return self.func(*args)
  File
"/home/ben/miniconda/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-linux-x86_64.egg/matplotlib/backends/backend_tkagg.py",
line 278, in resize
self.show()
  File
"/home/ben/miniconda/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-linux-x86_64.egg/matplotlib/backends/backend_tkagg.py",
line 350, in draw
tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
  File
"/home/ben/miniconda/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-linux-x86_64.egg/matplotlib/backends/tkagg.py",
line 30, in blit
id(data), colormode, id(bbox_array))
TclError
alloc: invalid block: 0x2cfe3b0: 0 0
Aborted (core dumped)

The line in question is (at least in v1.3.1, it is slightly different in
more recent versions):
tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode,
id(bbox_array))

This happens regardless of what example I use (my own or otherwise). There
is no blit-specific code in the examples. All of this worked with the
conda-supplied matplotlib, but never the
from-source-into-a-conda-environment install.

Thoughts?
Ben Root
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] html5 backend

2014-11-16 Thread Thomas Caswell
Stumbled across this today https://code.google.com/p/mplh5canvas/

It hasn't had a commit in 18mos and I have not tried it, but I am just
making sure the community is aware of it's existence.

Tom
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel