File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import matplotlib .pyplot as plt
44import numpy
55from matplotlib .backends .backend_pdf import PdfPages
6+ from mpl_toolkits .axes_grid1 import make_axes_locatable
67from MPSPlots import helper
78
89from SuPyMode .binary .interface_taper import AlphaProfile
@@ -373,14 +374,21 @@ def plot_geometry(self) -> plt.Figure:
373374 """
374375 figure , ax = plt .subplots (figsize = (5 , 5 ))
375376
376- ax .pcolormesh (
377+ pcm = ax .pcolormesh (
377378 self .model_parameters .x_vector ,
378379 self .model_parameters .y_vector ,
379380 self .model_parameters .mesh ,
380381 shading = "auto" ,
381382 cmap = "Blues" ,
382383 )
383384
385+ ax .set_aspect ("equal" )
386+
387+ divider = make_axes_locatable (ax )
388+ cax = divider .append_axes ("right" , size = "5%" , pad = 0.05 )
389+
390+ figure .colorbar (pcm , cax = cax )
391+
384392 return figure
385393
386394 def plot (self , plot_type : str , ** kwargs ) -> None :
You can’t perform that action at this time.
0 commit comments