Skip to content

Commit a8d1bee

Browse files
Merge pull request #85 from inwoo-park/plot
2 parents 9015048 + 0f12b25 commit a8d1bee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/m/plot/applyoptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def applyoptions(md, data, options, fig, axgrid, gridindex):
171171
lims = [data.min(), data.max()]
172172
else:
173173
lims = [0, 1]
174+
options.addfielddefault('caxis',lims)
174175
# }}}
175176
# {{{ shading TODO
176177
#if options.exist('shading'):

src/m/plot/plot_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def plot_manager(md, options, fig, axgrid, gridindex):
6767
plot_mesh(md, options, fig, axgrid, gridindex)
6868
#fig.delaxes(fig.axes[1]) # hack to remove colorbar after the fact
6969
return
70-
elif data == 'BC':
70+
elif data.upper() == 'BC': #Allow "bc" and "BC".
7171
plot_BC(md, options, fig, axgrid, gridindex)
7272
return
7373
elif data == 'elementnumbering':

0 commit comments

Comments
 (0)