File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/sectionproperties/analysis Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1678,12 +1678,18 @@ def plot_centroids(
16781678 def plot_warping_function (
16791679 self ,
16801680 title : str = "Warping Function" ,
1681+ level : int = 20 ,
1682+ cmap : str = "viridis" ,
1683+ with_lines : bool = True ,
16811684 ** kwargs ,
16821685 ):
16831686 r"""Plots the warping function over the mesh.
16841687
16851688 Args:
16861689 title: Plot title
1690+ level: Number of contour levels
1691+ cmap: Colormap
1692+ with_lines: If set to True, contour lines are displayed
16871693 kwargs: Passed to :func:`~sectionproperties.post.post.plotting_context`
16881694
16891695 Raises:
@@ -1697,10 +1703,6 @@ def plot_warping_function(
16971703 "Perform a warping analysis before plotting the warping function."
16981704 )
16991705
1700- level = kwargs .pop ("level" , 20 )
1701- cmap = kwargs .pop ("cmap" , "viridis" )
1702- with_lines = kwargs .pop ("with_lines" , True )
1703-
17041706 # create plot and setup the plot
17051707 with post .plotting_context (title = title , ** kwargs ) as (fig , ax ):
17061708 assert ax
You can’t perform that action at this time.
0 commit comments