Re: [ROOT] List of SetMarkerStyle & SetLineStyle constants?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Feb 13 2001 - 10:25:23 MET


Hi,
I have modified Gtypes.h to include the following definitions:

enum EColor { kWhite, kBlack, kRed, kGreen, kBlue, kYellow, kMagenta, kCyan };
enum ELineStyle { kSolid = 1, kDashed, kDotted, kDashDotted };
enum EMarkerStyle {kDot=1, kPlus, kStar, kCircle=4, kMultiply=5,
                   kFullDotSmall=6, kFullDotMedium=7, kFullDotlarge=8,
                   kFullCircle=20, kFullSquare=21, kFullTriangleUp=22,
                   kFullTriangleDown=23, kOpenCircle=24, kOpenSquare=25,
                   kOpenTriangleUp=26, kOpenDiamond=27, kOpenCross=28,
                   kFullStar=29, kOpenStar=30};

All these enums are also available at the interpreter level.
This is already included in CVS and will be part of 3.00/05

Rene Brun

Phlip wrote:
> 
> Rootlings:
> 
> I'm providing our Numeric Python-enabled scientists with a Python chart
> plotting system that adapts between their needs and ROOT. They think of a
> bunch of numbers, drop them in my function, and ROOT displays a scatter
> plot or line plot.
> 
> To publish these functions to them, I pass to them the settings that go in
> SetMarkerStyle and SetLineStyle. But I can't figure out what constants to
> provide. By contrast, colors like kRed appear in Gtypes.h -> EColors. We
> just type raw numbers in now, like 7 or 44. Not really enabling.
> 
> Where's a list of all the constants I can copy into Python?
> 
> --
>   Phlip                          phlip_cpp@my-deja.com
> ============ http://c2.com/cgi/wiki?PhlIp ============
>   --  All sensors report Patti having a very good time  --



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET