@@ -336,7 +336,7 @@ def describing_function_response(
336336 >>> response = ct.describing_function_response(H_simple, F_saturation, amp)
337337 >>> response.intersections # doctest: +SKIP
338338 [(3.343844998258643, 1.4142293090899216)]
339- >>> lines = response.plot()
339+ >>> cplt = response.plot()
340340
341341 """
342342 # Decide whether to turn on warnings or not
@@ -484,7 +484,7 @@ def describing_function_plot(
484484 >>> H_simple = ct.tf([8], [1, 2, 2, 1])
485485 >>> F_saturation = ct.saturation_nonlinearity(1)
486486 >>> amp = np.linspace(1, 4, 10)
487- >>> lines = ct.describing_function_plot(H_simple, F_saturation, amp)
487+ >>> cplt = ct.describing_function_plot(H_simple, F_saturation, amp)
488488
489489 """
490490 # Process keywords
@@ -521,8 +521,8 @@ def describing_function_plot(
521521 lines = np .empty (2 , dtype = object )
522522
523523 # Plot the Nyquist response
524- cfig = dfresp .response .plot (** kwargs )
525- lines [0 ] = cfig .lines [0 ] # Return Nyquist lines for first system
524+ cplt = dfresp .response .plot (** kwargs )
525+ lines [0 ] = cplt .lines [0 ] # Return Nyquist lines for first system
526526
527527 # Add the describing function curve to the plot
528528 lines [1 ] = plt .plot (dfresp .N_vals .real , dfresp .N_vals .imag )
@@ -533,7 +533,7 @@ def describing_function_plot(
533533 # Add labels to the intersection points
534534 plt .text (pos .real , pos .imag , point_label % (a , omega ))
535535
536- return ControlPlot (lines , cfig .axes , cfig .figure )
536+ return ControlPlot (lines , cplt .axes , cplt .figure )
537537
538538
539539# Utility function to figure out whether two line segments intersection
0 commit comments