Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Getting Started Guide. PART I: Download

In the previous topic we had a briefing on this amazing Plotly Graphing Library for MATLAB®. We were able to see awesome Plotly Charts that we can create based on the charts generated by MATLAB. We experience the supreme ease that this library offers us, that just by adding a simple line of code (using the fig2plotly function) the magic appears before our eyes.

It is time that we know how to download and install this powerful library in our work environment so that we can do magic on our own. Below you will have a getting started guide.

Requirements

First of all, you need to have a MATLAB version installed on your machine. Then please follow the steps below

Download Plotly Graphing Library for MATLAB®

For this, go to the Github Repository of the library through the following link: GitHub - plotly/plotly_matlab: Plotly Graphing Library for MATLAB®. The repository looks like this

To download the library you have two options:

  1. Download as a ZIP file

In this case you must click the Code drop-down menu, then go to the last option and click it.

The download will start immediately. Once it is finished, please locate the ZIP file in the directory where you want to install and then unzip it. This will generate the folder plotly-graphing-library-for-matlab-master.

  1. Clone the repository

This case can be used for users who have experience using git. The repository can be cloned by using: 1) the command terminal and 2) the GitHub Desktop application. Here you can choose the option of your preference.

In any case, if you want to use the command terminal you need to click the Code drop-down menu, then select the HTTP option (preferably) and then copy the link. The following image illustrates this

Then please open the command terminal and type

git clone https://github.com/plotly/plotly_matlab.git

where https://github.com/plotly/plotly_matlab.git is the link copied earlier. Finally, you run the above command line in the terminal whereupon the repository will be cloned/downloaded. At the end a folder called plotly-graphing-library-for-matlab, will be obtained

So far, we have learned how to download the library. In the next topic I will show you how to install Plotly Graphing Library for MATLAB®