Markers and lines on an XY plot

From: Emilie Vanvyve <evanvyve_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 24 2010 - 09:29:19 MDT

Hello,

I have got a resources behaviour I wasn't expecting and cannot figure out why it is like that. I wondered whether someone could explain it to me.

I draw a simple XY plot with 4 series of data (let's say A, B, C and D). I want A and B drawn with markers only, and C and D as lines only. I have set up my resources as:

  res_w@xyMarkLineModes = (/ "Markers", "Markers", "Lines", "Lines" /)
  res_w@xyMarkers = (/ 4, 16 /) ; some dots
  res_w@xyMarkerColors = (/ 3, 30 /)
  res_w@xyMarkerSizes = (/ 0.065, 0.055 /)
  res_w@xyDashPatterns = (/ 2, 1 /) ; dashed lines
  res_w@xyLineThicknessF = thickness
  res_w@xyLineColor = 255

With this, A and B are fine but not C and D. Colours and sizes/thicknesses are correct for all 4 series, but C and D appear as solid lines instead of dashed lines. To get it right, I have to change @xyDashPatterns to:

  res_w@xyDashPatterns = (/ something, something, 2, 1 /)

Is this normal? @xyMarker* and @xyLine* only seem to need 2 values as I would expect from the setting of @xyMarkLineModes. Why then does @xyDashPatterns need 4 values? Should I define all these resources as arrays of 4 values? (It also works.)

Emilie

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Sep 24 09:22:59 2010

This archive was generated by hypermail 2.1.8 : Mon Oct 04 2010 - 08:55:55 MDT