Thread Subject: plot markersize property confuses me

Subject: plot markersize property confuses me

From: jay vaughan

Date: 28 May, 2008 22:00:19

Message: 1 of 2

Hi,

I would like to create a plot with a markersize between 1
and 2 but notice that the markersize only seems to adopt
integer values even if I request noninteger values. Does
anyone know how this works? Is there a way to get
the 'inbetween' values I am looking for?

Thanks,
J


% markersize 1 is too small (just a single point)
plot(1:5,'o-','markersize',1)

% markersize 2 is too big
plot(1:5,'o-','markersize',2)

% markersize 1.5 is the same as 2
plot(1:5,'o-','markersize',1.5)

% markersize 1.49 is the same as 1
plot(1:5,'o-','markersize',1.49)

Subject: plot markersize property confuses me

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 28 May, 2008 22:55:01

Message: 2 of 2

In article <g1kklj$ade$1@fred.mathworks.com>,
jay vaughan <jvaughan5.nospam@gmail.com> wrote:

>I would like to create a plot with a markersize between 1
>and 2 but notice that the markersize only seems to adopt
>integer values even if I request noninteger values. Does
>anyone know how this works? Is there a way to get
>the 'inbetween' values I am looking for?

The R2007a documentation does not establish any evidence that the
MarkerSize property can be anything other than integral -- nor does
it establish any evidence that it cannot be integral.

Through experimentation with a 'p' (pentagon) marker, I find
that the marker visibly changes size at 12.8, 14.4, 16.0
(tested by 0.1 increments.)

From this I conclude that non-integral marker sizes -are- supported,
but because markers have to be drawn in terms of specific pixel
patterns, it can take relatively large changes in the MarkerSize for
there to be a visible difference.
--
  "The human mind is so strangely capricious, that, when freed from
  the pressure of real misery, it becomes open and sensitive to the
  ideal apprehension of ideal calamities." -- Sir Walter Scott

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
markersize jay vaughan 28 May, 2008 18:05:05
rssFeed for this Thread

Contact us at files@mathworks.com