Skip to content

Commit

Permalink
set x and y limits to positive values to suppress warning with log scale
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed May 12, 2023
1 parent bff4518 commit 23ab385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_axes.py
Expand Up @@ -39,10 +39,10 @@ def test_axis_limits(self):
line_command = "plt.figure(1).axes[0].set("
test_run = "Change axes limits."

self.change_property2("xlim", (0, 10), lambda _: self.fig.window.input_properties.input_xaxis.input_lim.setValue((0, 10), signal=True), get_axes, line_command,
self.change_property2("xlim", (1, 10), lambda _: self.fig.window.input_properties.input_xaxis.input_lim.setValue((1, 10), signal=True), get_axes, line_command,
test_run)

self.change_property2("ylim", (-5, 8), lambda _: self.fig.window.input_properties.input_yaxis.input_lim.setValue((-5, 8), signal=True), get_axes, line_command,
self.change_property2("ylim", (2, 8), lambda _: self.fig.window.input_properties.input_yaxis.input_lim.setValue((2, 8), signal=True), get_axes, line_command,
test_run)

self.change_property2("xlabel", "label",
Expand Down

0 comments on commit 23ab385

Please sign in to comment.