tag:blogger.com,1999:blog-193178369124442285.post4968923360923799045..comments2022-11-12T23:40:40.957-08:00Comments on Jessica Kirkpatrick Research: Pretty Plots - 2D Histogram with 1D Histograms on Axesberkeleyjesshttp://www.blogger.com/profile/00255252868558666987noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-193178369124442285.post-36089558325117518942013-06-24T06:11:34.997-07:002013-06-24T06:11:34.997-07:00You also need the line:
from matplotlib.ticker imp...You also need the line:<br />from matplotlib.ticker import MaxNLocatorAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-58142154634520638642013-06-24T05:58:19.050-07:002013-06-24T05:58:19.050-07:00Looks like the ellipse function was taken from:
ht...Looks like the ellipse function was taken from:<br />http://shortrecipes.blogspot.com.au/2008/11/python-draw-ellipse.html<br /><br />Which also imports linspace, solving both problems!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-88978529930180536992013-01-09T08:31:52.040-08:002013-01-09T08:31:52.040-08:00it doesn't look rexp is used at all in the cod...it doesn't look rexp is used at all in the code provided. What is the ellipse function? I can't find it anywhere? And for anyone else trying to get the code to run, you'll need to change the call to linspace from linspace to N.linspace, and the top line "import numpy as np" needs to be changed to "import numpy as N". Theres still the missing ellipse function though ...<br /><br />Here is a working example of something very similar looking: https://gist.github.com/4494559Zach Dwielhttps://www.blogger.com/profile/08300067786399868484noreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-60536455003996058772012-11-29T06:07:36.364-08:002012-11-29T06:07:36.364-08:00all code formatting was killed :/all code formatting was killed :/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-27144513068596885422012-09-10T16:14:55.821-07:002012-09-10T16:14:55.821-07:00You call this using the following code:
makeTemp...You call this using the following code: <br /><br />makeTempHistogramPlot(xdata,ydata,rexp,filename=None,xlims=-99, ylims =-99 , nxbins = 50,nybins=50, bw=0, nbins=100,contours=1,sigma=1,line=1)<br /><br />The rexp is for the exponent in the x and y labels on the plot.berkeleyjesshttps://www.blogger.com/profile/00255252868558666987noreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-48409500138535745212012-09-05T14:49:36.636-07:002012-09-05T14:49:36.636-07:00Would you mind giving an example. How do you call ...Would you mind giving an example. How do you call this function and what is rexp variable?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-9210836801836617482012-07-09T13:45:16.122-07:002012-07-09T13:45:16.122-07:00I'm glad you found it helpful Zhuchang!I'm glad you found it helpful Zhuchang!berkeleyjesshttps://www.blogger.com/profile/00255252868558666987noreply@blogger.comtag:blogger.com,1999:blog-193178369124442285.post-39360460828811097172012-07-09T12:09:58.464-07:002012-07-09T12:09:58.464-07:00This is really awesome, just what i was looking fo...This is really awesome, just what i was looking for~Anonymoushttps://www.blogger.com/profile/09164968753333809439noreply@blogger.com