@@ -87,6 +87,7 @@ class BasePlotOptions:
8787 type: The plot type ("auto", "manual", "curve" or "image")
8888 axes_synchronised: If True, the axes are synchronised
8989 force_colorbar_enabled: If True, the colorbar is always enabled
90+ show_axes_tab: If True, the axes tab is shown in the parameters dialog
9091 """
9192
9293 title : str | None = None
@@ -105,6 +106,7 @@ class BasePlotOptions:
105106 type : str | PlotType = "auto"
106107 axes_synchronised : bool = False
107108 force_colorbar_enabled : bool = False
109+ show_axes_tab : bool = True
108110
109111 def __post_init__ (self ) -> None :
110112 """Check arguments"""
@@ -828,6 +830,22 @@ def set_title(self, title: str) -> None:
828830 self .setTitle (text )
829831 self .SIG_PLOT_LABELS_CHANGED .emit (self )
830832
833+ def get_show_axes_tab (self ) -> bool :
834+ """Get whether the axes tab is shown in the parameters dialog
835+
836+ Returns:
837+ bool: True if the axes tab is shown
838+ """
839+ return self .options .show_axes_tab
840+
841+ def set_show_axes_tab (self , show : bool ) -> None :
842+ """Set whether the axes tab is shown in the parameters dialog
843+
844+ Args:
845+ show (bool): True to show the axes tab
846+ """
847+ self .options .show_axes_tab = show
848+
831849 def get_axis_id (self , axis_name : str | int ) -> int :
832850 """Return axis ID from axis name
833851 If axis ID is passed directly, check the ID
@@ -1868,14 +1886,15 @@ def get_plot_parameters(self, key: str, itemparams: ItemParameters) -> None:
18681886 if not active_item :
18691887 return
18701888 self .get_selected_item_parameters (itemparams )
1871- Param = self .get_axesparam_class (active_item )
1872- axesparam = Param (
1873- title = _ ("Axes" ),
1874- icon = "lin_lin.png" ,
1875- comment = _ ("Axes associated to selected item" ),
1876- )
1877- axesparam .update_param (active_item )
1878- itemparams .add ("AxesParam" , self , axesparam )
1889+ if self .get_show_axes_tab ():
1890+ Param = self .get_axesparam_class (active_item )
1891+ axesparam = Param (
1892+ title = _ ("Axes" ),
1893+ icon = "lin_lin.png" ,
1894+ comment = _ ("Axes associated to selected item" ),
1895+ )
1896+ axesparam .update_param (active_item )
1897+ itemparams .add ("AxesParam" , self , axesparam )
18791898
18801899 def set_item_parameters (self , itemparams : ItemParameters ) -> None :
18811900 """Set item (plot, here) parameters
0 commit comments