🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

# Plotly Graphing Library for MATLAB®

This amazing library lets you create completely professional MATLAB-based Plotly Charts, interactively.

Perhaps the first questions that come to mind are: How is this possible? or How does this work?

I think the most appropriate response to this situation is the following: this is possible and it works in a very easy way. Just imagine you want to make a chart using MATLAB. Let’s say you want to make a 3D bar chart. So using MATLAB `bar3` function, you can do the following

``````load count.dat
Z = count(1:10,:);

figure
bar3(Z)
title('Detached Style');
``````

Well, this is the chart obtained from the MATLAB side. Now imagine that for some reason you need/want to enhance the visual aspect of this 3D bar chart. What could you do?

This is where this amazing library emerges as the most desired solution . See how easy and interactive it is!
You just need to add a line of code at the end like the following

`f = fig2plotly(gcf, 'offline', 0, 'TreatAs', 'bar3');`

So, you can get the following chart in Plotly!

Really amazing right!

Imagine everything you can do with this incredible library. Imagine all the MATLAB-based charts that you can now power in Plotly! I think there are no longer limits!

Note how easy and interactive it is to use!
You just need to add one more simple line of code (`original code + fig2plotly ()`), then run the complete code (see bellow) and Voila! Dam!

``````load count.dat
Z = count(1:10,:);

figure
bar3(Z)
title('Detached Style');

f = fig2plotly(gcf, 'offline', 0, 'TreatAs', 'bar3');
``````