Matplotlib: Cómo mostrar etiquetas de tick como porcentaje de escala completa usando UliPlot

Puedes usar UliPlot para mostrar etiquetas de tick como porcentaje de escala completa en Matplotlib. Aquí está cómo:

uliplot_percent_example.py
from UliPlot.TickFormat import *

set_yaxis_tick_format_percent(fullscale=3.3)
# y/o
set_xaxis_tick_format_percent(fullscale=3.3)

Ejemplo completo

uliplot_percent_full_example.py
import matplotlib.pyplot as plt
import numpy as np
from UliPlot.TickFormat import *

x = np.linspace(0, 10, 100)
y = np.sin(x)

plt.plot(x, y)
set_yaxis_tick_format_percent(fullscale=3.3)
plt.show()

UliPlot TickFormat porcentaje.svg


Echa un vistazo a artículos similares por categoría: Python Matplotlib