Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- add graphics script on top of points?

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 5, 2015 7:29 PM
(3637 views)

If I draw on a graph using Add Graphics Script() is there a way to force that to be on top of the data points rather than behind? Or, equivalently, to make the points move back? Giving the points some transparency is somewhat helping me but I'd still like to be able to draw on top of them.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Note the '3' and the '5' in the graphics scripts below. You can see which scripts are tied to the graphics box by right-clicking on it and selecting 'Customize...'.

NamesDefaultToHere**(****1****)**;

// Some data

dt = NewTable**(**"Point Cloud",

NewColumn**(**"X", Numeric, Continuous, Formula**(**RandomNormal**()))**,

NewColumn**(**"Y", Numeric, Continuous, Formula**(**RandomNormal**()))**,

AddRows**(****10000****)**

**)**;

// Bivariate with two graphics scripts

biv = dt << **Bivariate****(**

Y**(** :Y **)**,

X**(** :X **)**,

SendToReport**(**

Dispatch**(**

**{}**,

"Bivar Plot",

FrameBox,

**{**Frame Size**(** **497**, **377** **)**,

Add Graphics Script**(**

**3**,

Description**(** "Behind Points" **)**,

Pen Color**(** "Red" **)**;

H Line**(** **0** **)**;

**)**, Add Graphics Script**(**

**5**,

Description**(** "In front of Points" **)**,

Pen Color**(** "Green" **)**;

V Line**(** **0** **)**;

**)}**

**)**

**)**

**)**;

2 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Note the '3' and the '5' in the graphics scripts below. You can see which scripts are tied to the graphics box by right-clicking on it and selecting 'Customize...'.

NamesDefaultToHere**(****1****)**;

// Some data

dt = NewTable**(**"Point Cloud",

NewColumn**(**"X", Numeric, Continuous, Formula**(**RandomNormal**()))**,

NewColumn**(**"Y", Numeric, Continuous, Formula**(**RandomNormal**()))**,

AddRows**(****10000****)**

**)**;

// Bivariate with two graphics scripts

biv = dt << **Bivariate****(**

Y**(** :Y **)**,

X**(** :X **)**,

SendToReport**(**

Dispatch**(**

**{}**,

"Bivar Plot",

FrameBox,

**{**Frame Size**(** **497**, **377** **)**,

Add Graphics Script**(**

**3**,

Description**(** "Behind Points" **)**,

Pen Color**(** "Red" **)**;

H Line**(** **0** **)**;

**)**, Add Graphics Script**(**

**5**,

Description**(** "In front of Points" **)**,

Pen Color**(** "Green" **)**;

V Line**(** **0** **)**;

**)}**

**)**

**)**

**)**;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: add graphics script on top of points?

Thanks! That did it.