Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change more deprecated subplot specifiers... #309

Merged
merged 1 commit into from
Aug 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions evo/tools/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def traj_rpy(axarr, traj, style='-', color='black', label="", alpha=1.0,


def trajectories(fig, trajectories, plot_mode=PlotMode.xy, title="",
subplot_arg="111"):
subplot_arg=111):
"""
high-level function for plotting multiple trajectories
:param fig: matplotlib figure
Expand All @@ -553,7 +553,7 @@ def trajectories(fig, trajectories, plot_mode=PlotMode.xy, title="",
:param title: optional plot title
:param subplot_arg: optional matplotlib subplot ID if used as subplot
"""
ax = prepare_axis(fig, plot_mode)
ax = prepare_axis(fig, plot_mode, subplot_arg)
cmap_colors = None
if SETTINGS.plot_multi_cmap.lower() != "none":
cmap = getattr(cm, SETTINGS.plot_multi_cmap)
Expand Down Expand Up @@ -581,7 +581,7 @@ def draw(t, name=""):

def error_array(fig, err_array, x_array=None, statistics=None, threshold=None,
cumulative=False, color='grey', name="error", title="",
xlabel="index", ylabel=None, subplot_arg='111', linestyle="-",
xlabel="index", ylabel=None, subplot_arg=111, linestyle="-",
marker=None):
"""
high-level function for plotting raw error values of a metric
Expand Down