Skip to content

NaN pcolor cells and char ticklabels #1

@daanhubert

Description

@daanhubert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions