File Exchange

## The carpetplot class

version 1.4.0.0 (376 KB) by Matthias

### Matthias (view profile)

Create carpet plots and cheater plots easily

Updated 30 May 2013

The carpetplot class is a tool to create four variable carpet plots and three variable cheater plots. It supports different kind of input data and some additional features like...

- Support for scattered data
- Support for matrix input
- Interpolation of points
- Different curve fitting methods
- A set of pre defined styles
- Labels
- Coordinate system transformation
- Multiple carpet plots support
- Filled Contours
- Set and Get functions for all
properties
- Lattice plots

### Cite As

Matthias (2019). The carpetplot class (https://www.mathworks.com/matlabcentral/fileexchange/41467-the-carpetplot-class), MATLAB Central File Exchange. Retrieved .

Charlotte Marshall-Bailey

### Charlotte Marshall-Bailey (view profile)

Keep getting the same error,

Error in arrow (line 423)
ax = o * gca;

Krossfire999

### Krossfire999 (view profile)

It won't plot. It runs but nothing pops up

Aaron Groom

### Aaron Groom (view profile)

Hi,

I am trying to run your examples but I get errors every time they try run.

% Example 1: Create a simple cheater plot with matrix input data.
% a = 1:0.25:2; b=1:20:100;
% [A B] = meshgrid(a, b);
% Y = A.*B;
%
% o = carpetplot(A, B, Y);
% label(o, 'A-Axis', 'B-Axis')

This returns:

Undefined operator '*' for input arguments of
type 'matlab.graphics.axis.Axes'.

Error in arrow (line 423)
ax = o * gca;

Error in carpetplot/plabel (line 2910)
obj.axis{nAxis}.arrowHandle =
arrow([pDataX(1,1)
pDataY(1,1)],[pDataX(1,end)
pDataY(1,end)],obj.axis{nAxis}.arrowSpec{:});

Error in carpetplot/label (line 2118)
obj.plabel(1);

Whilst with the same input data, if I just run :

o = carpetplot(A, B, Y, 'spline');

The following error results:

Error using plot3
Error in color/linetype argument.

Error in carpetplot/cplot (line 1820)
obj.axis{1}.lineHandles =
plot3(obj.plotDataX,obj.plotDataY,plotDataZ,obj.axis{1}.lineSpec{:});

Error in carpetplot (line 887)
obj.cplot

Help is greatly appreciated

MANIKANDAN MURUGAIAH

### MANIKANDAN MURUGAIAH (view profile)

hi

i'm getting a following error

Undefined operator '*' for input arguments of type 'matlab.graphics.axis.Axes'.
Error in arrow (line 423)
ax = o * gca;
Error in carpetplot/plabel (line 2908)
obj.axis{nAxis}.arrowHandle = arrow([pDataX(1,1) pDataY(1,1)],[pDataX(1,end)
pDataY(1,end)],obj.axis{nAxis}.arrowSpec{:});
Error in carpetplot/alabel (line 2068)
obj.plabel(1)
Error in mk (line 25)
alabel(o,'T/W');

Alejandro Quintero

### Alejandro Quintero (view profile)

I´m on the R2013a and every time I try to use this package it seems that the tool carpetplot is not installed. I need urgent help.

Bryan Morrisey

### Bryan Morrisey (view profile)

Great package, but I'm getting an error when trying to label the plot using label(). I'm on R2014b.

Undefined function 'mtimes' for input arguments of type
'matlab.graphics.axis.Axes'.

Error in arrow (line 424)
ax = o * gca;