Skip to content

Commit

Permalink
Update of the plotting and plotting configureation
Browse files Browse the repository at this point in the history
Not sure it is working on Binder, though....
  • Loading branch information
jgomezdans committed Jan 10, 2024
1 parent 411b854 commit 66b9ace
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 106 deletions.
237 changes: 141 additions & 96 deletions DA_practical.ipynb

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions matplotlibrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ font.family : sans-serif
# small, medium, large, x-large, xx-large, larger, or smaller
font.size : 12.0
# font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
font.sans-serif : Helvetica
font.sans-serif : Roboto Condensed
#font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy
font.monospace : Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
Expand Down Expand Up @@ -281,8 +281,8 @@ legend.numpoints : 1 # the number of points in the legend line
# See http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure
figure.figsize : 6, 6 # figure size in inches
#figure.dpi : 80 # figure dots per inch
figure.facecolor : 0.85 # figure facecolor; 0.75 is scalar gray
figure.edgecolor : 0.50 # figure edgecolor
figure.facecolor : white # figure facecolor; 0.75 is scalar gray
figure.edgecolor : white # figure edgecolor

# The figure subplot parameters. All dimensions are fraction of the
# figure width or height
Expand Down Expand Up @@ -329,8 +329,8 @@ figure.subplot.hspace : 0.5 # the amount of height reserved for white space
# Eg, you may want a higher resolution, or to make the figure
# background white
#savefig.dpi : 100 # figure dots per inch
#savefig.facecolor : white # figure facecolor when saving
#savefig.edgecolor : white # figure edgecolor when saving
savefig.facecolor : white # figure facecolor when saving
savefig.edgecolor : white # figure edgecolor when saving
#savefig.extension : auto # what extension to use for savefig('foo'), or 'auto'

#cairo.format : png # png, ps, pdf, svg
Expand Down Expand Up @@ -395,4 +395,3 @@ keymap.save : s # saving current figure
keymap.grid : g # switching on/off a grid in current axes
keymap.yscale : l # toggle scaling of y-axes ('log'/'linear')
keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear')
keymap.all_axes : a # enable all axes
8 changes: 4 additions & 4 deletions plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ def pretty_axes( ax ):
ax.spines["right"].set_visible(False)
ax.spines["left"].set_visible(True)

ax.get_xaxis().tick_bottom()
ax.get_yaxis().tick_left()
ax.xaxis.set_ticks_position('bottom')
ax.yaxis.set_ticks_position('left')
loc = plt.MaxNLocator( 6 )
ax.yaxis.set_major_locator( loc )


ax.tick_params(axis="both", which="both", bottom="off", top="off",
labelbottom="on", left="off", right="off", labelleft="on")
# ax.tick_params(axis="both", which="both", bottom="off", top="off",
# labelbottom="on", left="off", right="off", labelleft="on")

def plot_dalec ( outputs ):
pools = [r'$NEE$', r'$GPP$', '$Ra$', '$Rh_1 + Rh_2$', '$A_f$','$A_r$', \
Expand Down

0 comments on commit 66b9ace

Please sign in to comment.