Deploy plot through a simple URL
- Git installed on your PC
- Heroku account with Heroku CLI installed on your PC
- Make sure you have both heroku and git accessible in your PATH
-
Login to heroku
$ heroku login
-
Create an app
$ heroku create
(keep the app name to deploy your plot)
You can alternatively create the app from the Heroku website:
In this simple demonstration, we deploy a Scilab plot on a simple URL:
x=[0:0.1:2*%pi];
y=2*sin(x);
plot(x,y)
f=gcf();
herokuapp=fast-crag-81914
plotdeploy(f,herokuapp)
You simply need to replace the name of your heroku app to replicate it.