File Exchange

image thumbnail

The carpetplot class

version 1.4.0.0 (376 KB) by Matthias

Matthias (view profile)

Create carpet plots and cheater plots easily

13 Downloads

Updated 30 May 2013

View License

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
- Adding constraints
- Coordinate system transformation
- Multiple carpet plots support
- Filled Contours
- Set and Get functions for all
properties
- Lattice plots

Comments and Ratings (5)

Krossfire999

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

Aaron Groom

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

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');

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.

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;

Updates

1.4.0.0

Text rotation fixed, Documentation

1.2.0.0

Removed some obsolet files

1.1.0.0

Bug fixes, Documentation, lattice plot support

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor