Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras committed Aug 16, 2012
1 parent 9e15314 commit 37d4bd0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plot_me_test.txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@

# random 2D
Z = np.clip(randn(250, 250), -1, 1)
i=plot_me.fig2d("x (pixel)","y(pixel)" ,"Intensity (arb. units)", zlimit=(0,10), colorformat="%f", extent=[0, 100, 0, 100], fixcbsize=6, cbpad=0.08)
#plot_me.mpl.rcParams['font.size']=8
#if zlimit is equal for min and max, the limits will be set with the median denoise of the given strenth.
i=plot_me.fig2d("x (pixel)","y($\mu$)" ,"Intensity (arb. units)", zlimit=(1,1), colorformat="%f", extent=[0, 100, 0, 100], fixcbsize=6, cbpad=0.08)
#i.ncmap='hot'
i.ncolors=10
#i.colorformat='$10^{%d}$'
i.add(Z).plot()
i.add(Z).plot(4,2,4)
i.fig.subplots_adjust(wspace=None, hspace=0.04)
i.ax =i.fig.add_subplot(4,2,1)
i.tplot()
i.ax.text(0.5,1, "Voltage=1V", fontsize=20,bbox=dict(facecolor='white', alpha=0.5))
i.add_line(np.array([[10,40], [90, 90], [80, 50]]), lw=1, color="red")

Expand All @@ -30,6 +35,7 @@

plot_me.config.ncmap='Dark2'
plot_me.config.ncolors=11 # this trick also works for 2D
plot_me.mpl.rcParams['font.size']=20

# Variour 1D plots with loading the data form txt and zip
i=plot_me.fig("Time (seconds)", "Power (arb. units)") #, ylimit=[30,180])
Expand Down

0 comments on commit 37d4bd0

Please sign in to comment.