Hi,
On Fri, Oct 11, 2013 at 9:29 PM, Matthew Brett wrote:
> Hi,
>
> On Thu, Oct 3, 2013 at 1:33 PM, Matthew Brett wrote:
>> Hi,
>>
>> On Thu, Oct 3, 2013 at 1:29 PM, Russell E. Owen wrote:
>>> In article
>>> ,
>>> Matthew Brett
>>> wrote:
>>>
Hi,
On Thu, Oct 3, 2013 at 5:59 AM
Hi,
On Thu, Oct 3, 2013 at 1:33 PM, Matthew Brett wrote:
> Hi,
>
> On Thu, Oct 3, 2013 at 1:29 PM, Russell E. Owen wrote:
>> In article
>> ,
>> Matthew Brett
>> wrote:
>>
>>> Hi,
>>>
>>> On Thu, Oct 3, 2013 at 5:59 AM, Michael Droettboom
>>> wrote:
>>> > Matthew Terry, as part of his Mac tes
Skip,
Here are some lines from an application I have written.
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg
In the setup:
self.canvas = FigureCanvasGTKAgg(self.figure)
self.canvas.set_size_request(600,600)
self.canvas.show()
#Pack the canvas in a parent contai
I want to use matplotlib as a component of a larger, event-driven GTK
app. That means pylab.show is (I think) not the way to go, as it
starts up its own event loop which doesn't return. I've tried to clear
and plot in my event handler, but my plot is never displayed.
My initialization code looks l
Nils,
I tried to run your example, but there are some variables which are undefined.
Can you post a self contained revision of your example?
-Sterling
On Oct 11, 2013, at 1:34AM, Nils Wagner wrote:
> plt.colorbar(scalarMap,ax=ax) results in
>
> cm.py", line 309, in autoscale_None
> raise
plt.colorbar(scalarMap,ax=ax) results in
cm.py", line 309, in autoscale_None
raise TypeError('You must first set_array for mappable')
TypeError: You must first set_array for mappable
Nils
On Fri, Oct 11, 2013 at 9:51 AM, Eric Firing wrote:
> On 2013/10/10 8:52 PM, Nils Wagner wrote:
> >
On 2013/10/10 8:52 PM, Nils Wagner wrote:
> Hi all,
>
> I tried to add a colorbar to a bar plot
>
> coolwarm = cm = plt.get_cmap('coolwarm')
> values = range(100)
> cNorm = colors.Normalize(vmin=0, vmax=values[-1])
> scalarMap = cmx.ScalarMappable(norm=cNorm, cmap=coolwarm)
> colours = []
> for v