@@ -180,9 +180,7 @@ def plot_scalar(
180180 step: a :class:`~stagpy._step.Step` of a StagyyData instance.
181181 var: the scalar field name.
182182 field: if not None, it is plotted instead of step.fields[var]. This is
183- useful to plot a masked or rescaled array. Note that if
184- conf.scaling.dimensional is True, this field will be scaled
185- accordingly.
183+ useful to plot a masked or rescaled array.
186184 axis: the :class:`matplotlib.axes.Axes` object where the field should
187185 be plotted. If set to None, a new figure with one subplot is
188186 created.
@@ -216,8 +214,6 @@ def plot_scalar(
216214 if conf .field .shift :
217215 fld = np .roll (fld , conf .field .shift , axis = 0 )
218216
219- fld , unit = step .sdat .scale (fld , meta .dim )
220-
221217 if axis is None :
222218 fig , axis = plt .subplots (ncols = 1 )
223219 else :
@@ -250,11 +246,7 @@ def plot_scalar(
250246 if conf .field .colorbar :
251247 cax = make_axes_locatable (axis ).append_axes ("right" , size = "3%" , pad = 0.15 )
252248 cbar = plt .colorbar (surf , cax = cax )
253- cbar .set_label (
254- meta .description
255- + (" pert." if conf .field .perturbation else "" )
256- + (f" ({ unit } )" if unit else "" )
257- )
249+ cbar .set_label (meta .description + (" pert." if conf .field .perturbation else "" ))
258250 if step .geom .spherical or conf .plot .ratio is None :
259251 axis .set_aspect ("equal" )
260252 axis .set_axis_off ()
@@ -283,9 +275,7 @@ def plot_iso(
283275 step: a :class:`~stagpy._step.Step` of a StagyyData instance.
284276 var: the scalar field name.
285277 field: if not None, it is plotted instead of step.fields[var]. This is
286- useful to plot a masked or rescaled array. Note that if
287- conf.scaling.dimensional is True, this field will be scaled
288- accordingly.
278+ useful to plot a masked or rescaled array.
289279 extra: options that will be passed on to
290280 :func:`matplotlib.axes.Axes.contour`.
291281 """
@@ -352,8 +342,7 @@ def _findminmax(
352342 for step in sdat .walk .filter (snap = True ):
353343 for var in sovs :
354344 if var in step .fields :
355- field = step .fields [var ]
356- vals , _ = sdat .scale (field .values , field .meta .dim )
345+ vals = step .fields [var ].values
357346 if var in minmax :
358347 minmax [var ] = (
359348 min (minmax [var ][0 ], np .nanmin (vals )),
@@ -401,10 +390,10 @@ def cmd() -> None:
401390 elif valid_field_var (var [1 ] + "1" ):
402391 plot_vec (axis , step , var [1 ], conf = conf )
403392 if conf .field .timelabel :
404- time , unit = sdat . scale ( step .timeinfo ["t" ], "s" )
393+ time = step .timeinfo ["t" ]
405394 time = _helpers .scilabel (time )
406395 axes [0 , 0 ].text (
407- 0.02 , 1.02 , f"$t={ time } $ { unit } " , transform = axes [0 , 0 ].transAxes
396+ 0.02 , 1.02 , f"$t={ time } $" , transform = axes [0 , 0 ].transAxes
408397 )
409398 oname = "_" .join (chain .from_iterable (vfig ))
410399 plt .tight_layout (w_pad = 3 )
0 commit comments