plot2svg icon indicating copy to clipboard operation
plot2svg copied to clipboard

NaN pcolor cells and char ticklabels

Open daanhubert opened this issue 10 years ago • 1 comments

Hi

I am using the Matlab, and had two issues with the current version...

First, one of my pcolor plots contains NaNs so that those cells remain transparant. But plot2svg resets those NaNs to 1 (l.1729,l.1755), filling the corresponding cells with the 1st color of the colormap (not transparant).

This was my fix, can it break other stuff? l.1721: lNaN = isnan(pointc); l.1756: pointc(lNaN) = NaN;

Second, to overcome an issue with char X/Y/ZTicklabels I added if ~iscell(numlabels), numlabels = cellstr(numlabels); end to l.2500, 2528, 2556.

Kind regards Daan

daanhubert avatar Dec 16 '14 17:12 daanhubert

just wanted to let you know about the first release of fig2svg:

https://github.com/kupiqu/fig2svg

please give it a try and if the issue is still there please report

kupiqu avatar Nov 26 '18 15:11 kupiqu