Skip to content

Custom Log scale in batch_execution's plot_graphs script #990

Description

@brunofavs

Use the code here to implement custom log scale in a clean way in plot_graphs script. Right now its only experimental.

As of right now uncommenting this hunk would toggle a fixed custom log scale. It should be implemented in the plot.yml as a parameter.

# from matplotlib.ticker import MaxNLocator, LogLocator,FormatStrFormatter,ScalarFormatter
# import numpy as np
# plt.gca().yaxis.set_major_locator(LogLocator(base=10, subs=np.arange(0.1, 1, 0.1), numticks=10))
# # plt.gca().yaxis.set_major_formatter(FormatStrFormatter(''))
# plt.gca().yaxis.set_major_formatter(ScalarFormatter())
# plt.gca().yaxis.set_minor_formatter(ScalarFormatter())
# plt.tick_params(axis='y', labelsize=8) # Adjust the label size here (e.g., 8)

Metadata

Metadata

Assignees

Labels

low priorityTo do if there are no other active issues

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions