BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AMK
Fluorite | Level 6 AMK
Fluorite | Level 6

Hi,

 

 

one of our EG 7 users has spotted an issue with line plots. If we do a line plot, selecting the "Multiple line plots by group column" option, the final graph displays the graph axes, titles etc. but the curves have all defaulted to a white line, marker and border, so are invisible on the default white background!

 

I have confirmed that other users have the same issue.

 

I know we can manually reconfigure the curves and markers, but this seems like a bug in EG 7. If we revert to just doing a basic line plot, the lines and markers are displayed, but that is not much use to us.

 

Here is the code that the task generates:

 

/* -------------------------------------------------------------------
   Code generated by SAS Task

   Generated on: Thursday, October 05, 2017 at 4:02:46 PM
   By task: Line Plot

   Input Data: SASApp:WORK.F43_OVERLAY
   Server:  SASApp
   ------------------------------------------------------------------- */

%_eg_conditional_dropds(WORK.SORTTempTableSorted);
/* -------------------------------------------------------------------
   Sort data set WORK.F43_OVERLAY
   ------------------------------------------------------------------- */
PROC SORT
    DATA=WORK.F43_OVERLAY(KEEP=time "Profile2(degc)"n run)
    OUT=WORK.SORTTempTableSorted
    ;
    BY time;
RUN;
SYMBOL1
    INTERPOL=JOIN
    HEIGHT=10pt
    VALUE=NONE
    LINE=1
    WIDTH=2

    CV = _STYLE_
;
SYMBOL2
    INTERPOL=JOIN
    HEIGHT=10pt
    VALUE=NONE
    LINE=1
    WIDTH=2

    CV = _STYLE_
;
Legend1
    FRAME
    ;
Axis1
    STYLE=1
    WIDTH=1
    MINOR=NONE


;
Axis2
    STYLE=1
    WIDTH=1
    MINOR=NONE


;
TITLE;
TITLE1 "Line Plot";
FOOTNOTE;
FOOTNOTE1 "Generated on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";
PROC GPLOT DATA = WORK.SORTTempTableSorted
;
PLOT 'Profile2(degc)'n * time      =run
 /
     VAXIS=AXIS1

    HAXIS=AXIS2

FRAME    LEGEND=LEGEND1
;
/* -------------------------------------------------------------------
   End of task code
   ------------------------------------------------------------------- */
RUN; QUIT;
%_eg_conditional_dropds(WORK.SORTTempTableSorted);
TITLE; FOOTNOTE;
GOPTIONS RESET = SYMBOL;

 

Does anyone know a way around it?

 

Thanks,

Adrian.

1 ACCEPTED SOLUTION

Accepted Solutions
AMK
Fluorite | Level 6 AMK
Fluorite | Level 6

@Reeza, thanks for your help. When I ran it on the STOCKS data it worked fine.

 

Eventually I found that the values in the grouping column had a leading character (a whitespace character). When I removed the leading character, the curves were displayed correctly.

 

Still seems like a bug, so I will relay it to Tech Support.

 

Regards,

Adrian.

 

 

View solution in original post

4 REPLIES 4
Reeza
Super User

Colors and markers are defined by the default STYLE.

What is your default STYLE? 

 

And I would contact SAS Tech Support if you haven't already 🙂

AMK
Fluorite | Level 6 AMK
Fluorite | Level 6

Hi @Reeza,

 

in Enterprise Guide we are using the default HTMLBlue.

 

I'm not sure how to see the setup of _STYLE_.

 

Thanks,

Adrian.

Reeza
Super User

I'm using SAS EG 7.1 as well, with SAS 9.4 TS1M3, with default HTML output. 

 

Using the Line Plot task (not wizard) with the following set up, and default HTMLBLUE style, I don't see any issues. 

Can you replicate this issue with the SASHELP.STOCKS data set and let me know if the issues shows up?

Things you'll need to provide to Tech Support or here:

1. EG (exact version)

2. SAS version (%put &Sysvlong);

3. Does it work with the sample below?

4. What output destination are you using?

5. What style are you using? Any chance a user modified their default style?

 

 

You can find the style and corresponding information under Tools>Style Manager in EG.

delete_EG_Plots.JPG

 

 

AMK
Fluorite | Level 6 AMK
Fluorite | Level 6

@Reeza, thanks for your help. When I ran it on the STOCKS data it worked fine.

 

Eventually I found that the values in the grouping column had a leading character (a whitespace character). When I removed the leading character, the curves were displayed correctly.

 

Still seems like a bug, so I will relay it to Tech Support.

 

Regards,

Adrian.

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1219 views
  • 3 likes
  • 2 in conversation