import numpy as np
= np.arange(15).reshape(3, 5)
a a
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14]])
import numpy as np
= np.arange(15).reshape(3, 5)
a a
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14]])
import matplotlib.pyplot as plt
= plt.figure()
fig = np.arange(10)
x = 2.5 * np.sin(x / 20 * np.pi)
y = np.linspace(0.05, 0.2, 10)
yerr
+ 3, yerr=yerr, label='both limits (default)')
plt.errorbar(x, y + 2, yerr=yerr, uplims=True, label='uplims=True')
plt.errorbar(x, y + 1, yerr=yerr, uplims=True, lolims=True,
plt.errorbar(x, y ='uplims=True, lolims=True')
label
= [True, False] * 5
upperlimits = [False, True] * 5
lowerlimits =yerr, uplims=upperlimits, lolims=lowerlimits,
plt.errorbar(x, y, yerr='subsets of uplims and lolims')
label
='lower right')
plt.legend(loc plt.show(fig)
import plotly.express as px
import plotly.io as pio
= px.data.gapminder()
gapminder = gapminder.query("year == 2007")
gapminder2007 = px.scatter(gapminder2007,
fig ="gdpPercap", y="lifeExp", color="continent",
x="pop", size_max=60,
size="country")
hover_name fig.show()
Unable to display output for mime type(s): application/vnd.plotly.v1+json