File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ def getBounds2(self):
874874
875875 def plot_recipe (
876876 self ,
877- show_data = True ,
877+ show_observed = True ,
878878 show_fit = True ,
879879 show_diff = True ,
880880 offset_scale = 1.0 ,
@@ -908,7 +908,7 @@ def plot_recipe(
908908
909909 Parameters
910910 ----------
911- show_data : bool, optional
911+ show_observed : bool, optional
912912 If True, plot the observed data points. Default is True.
913913 show_fit : bool, optional
914914 If True, plot the calculated fit curve. Default is True.
@@ -993,9 +993,9 @@ def plot_recipe(
993993 >>> axes[0].set_yscale('log')
994994 >>> plt.savefig('my_fit.png', dpi=300)
995995 """
996- if not any ([show_data , show_fit , show_diff ]):
996+ if not any ([show_observed , show_fit , show_diff ]):
997997 raise ValueError (
998- "At least one of show_data , show_fit, "
998+ "At least one of show_observed , show_fit, "
999999 "or show_diff must be True"
10001000 )
10011001
@@ -1036,7 +1036,7 @@ def plot_recipe(
10361036 else :
10371037 current_ax = ax
10381038 fig = current_ax .figure
1039- if show_data :
1039+ if show_observed :
10401040 current_ax .plot (
10411041 x ,
10421042 yobs ,
Original file line number Diff line number Diff line change @@ -348,10 +348,10 @@ def test_plot_recipe_bad_display():
348348 # Case: All plots are disabled
349349 # expected: raised ValueError with message
350350 plt .close ("all" )
351- msg = "At least one of show_data , show_fit, or show_diff must be True"
351+ msg = "At least one of show_observed , show_fit, or show_diff must be True"
352352 with pytest .raises (ValueError , match = msg ):
353353 recipe .plot_recipe (
354- show_data = False ,
354+ show_observed = False ,
355355 show_diff = False ,
356356 show_fit = False ,
357357 )
You can’t perform that action at this time.
0 commit comments