Re: [Tutor] Looping over histogram plots

2012-06-27 Thread Alan Gauld
On 27/06/12 00:32, Elaina Ann Hyde wrote: Thanks for the comment, the set type is no problem for me, this is just a variable that I call set... and it works great for my purposes, It may work just now but if you ever decide you need to use a Python set you will be unable to because you

Re: [Tutor] Looping over histogram plots

2012-06-27 Thread Steven D'Aprano
On Wed, Jun 27, 2012 at 08:47:08AM +0100, Alan Gauld wrote: On 27/06/12 00:32, Elaina Ann Hyde wrote: Thanks for the comment, the set type is no problem for me, this is just a variable that I call set... and it works great for my purposes, It may work just now but if you ever decide

Re: [Tutor] Looping over histogram plots

2012-06-27 Thread Mark Lawrence
On 27/06/2012 08:47, Alan Gauld wrote: On 27/06/12 00:32, Elaina Ann Hyde wrote: Thanks for the comment, the set type is no problem for me, this is just a variable that I call set... and it works great for my purposes, It may work just now but if you ever decide you need to use a Python set

[Tutor] Looping over histogram plots

2012-06-26 Thread Elaina Ann Hyde
Hello all, I have been making some big multiplots lately and found a nice little way of writing out 30 plots as follows, this part works great and leads up to my question, here I have 30 sets defined by the set=(), in this case I get a nice arrangement of 30 plots for V(GSR) and Log(g) (2

Re: [Tutor] Looping over histogram plots

2012-06-26 Thread Don Jennings
Message: 1 Date: Tue, 26 Jun 2012 18:40:50 +1000 From: Elaina Ann Hyde elainah...@gmail.com To: tutor@python.org Subject: [Tutor] Looping over histogram plots snip set=(dat['a'+str(index)] == 1.00) You should not override the builtin set() type [1] as you've done here by assigning

Re: [Tutor] Looping over histogram plots

2012-06-26 Thread Elaina Ann Hyde
, 2012 at 9:19 PM, Don Jennings dfjenni...@gmail.com wrote: Message: 1 Date: Tue, 26 Jun 2012 18:40:50 +1000 From: Elaina Ann Hyde elainah...@gmail.com To: tutor@python.org Subject: [Tutor] Looping over histogram plots snip set=(dat['a'+str(index)] == 1.00) You should

Re: [Tutor] Looping over histogram plots

2012-06-26 Thread Elaina Ann Hyde
Yay Python: The solution was a syntax one, if anyone else ever feels like massively multi-plotting histograms, here is the working code: #-- fig, axes = plt.subplots(nrows=5, ncols=6, figsize=(12,6)) index=0 for b in axes: for ax in b: