[PYTHON] Multiply the x-axis value by n when plotting with pylab

When plotting with matplotlib

In such a case, use xticks to get the label and You can edit it and write it back.

xticks, strs = pylab.xticks()
pylab.xticks(xticks, ["%d" % x for x in 10 * xticks])

Recommended Posts

Multiply the x-axis value by n when plotting with pylab
Extract the maximum value with pandas.
Avoid the warning [invalid value encountered in true_divide] when dividing by zero
When you want to replace a column with a missing value (NaN) column by column
Behavior when returning in the with block
Find the SHA256 value with R (with bonus)
When changing the table name with flask_migrate
When the log acquired by rsyslog is not updated after rotation with logrotate