I try to draw the 4 regions of the plane $(t,y)\in \mathbb{R}^2$ defined by these inequalities:
$t \le 0 \\ \\ t > 0, y < 0 \\ t > 0, 0 \le y \le t^2 \\ t > 0, t^2 < y $
What I did:
This is the snap code I tried to run from plot.ly:
%pylab inline
from plotly import *
from plotly.offline import *
init_notebook_mode()
x = np.linspace(0, 2*np.pi, 100)
fig, ax = plt.subplots()
ax.plot(np.sin(x), label='sin'); ax.plot(np.cos(x), label='cos')
update = {'data':[{'fill': 'tozeroy'}]} # this updates BOTH traces now
plot_url = py.plot_mpl(fig, update=update, filename='mpl-multi-fill')
plot.ly but requires some authentication as I have the following error:
Aw, snap! We don't have an account for ''. Want to try again? You can authenticate with your email address or username. Sign in is not case sensitive. Don't have an account? plot.ly Questions? [email protected]
Could you please help? Are there any built-in tools to draw regions in ipython? Many thanks for any help
I think you should try to use the offline mode. With these, the plotly is working fine for me: