Desktop productivity for business analysts and programmers

Multiple line plots by group column is not displaying any curves

Accepted Solution Solved
Reply
Occasional Contributor AMK
Occasional Contributor
Posts: 10
Accepted Solution

Multiple line plots by group column is not displaying any curves

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.


Accepted Solutions
Solution
3 weeks ago
Occasional Contributor AMK
Occasional Contributor
Posts: 10

Re: Multiple line plots by group column is not displaying any curves

@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


All Replies
Super User
Posts: 19,171

Re: Multiple line plots by group column is not displaying any curves

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 Smiley Happy

Occasional Contributor AMK
Occasional Contributor
Posts: 10

Re: Multiple line plots by group column is not displaying any curves

Hi @Reeza,

 

in Enterprise Guide we are using the default HTMLBlue.

 

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

 

Thanks,

Adrian.

Super User
Posts: 19,171

Re: Multiple line plots by group column is not displaying any curves

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

 

 

Solution
3 weeks ago
Occasional Contributor AMK
Occasional Contributor
Posts: 10

Re: Multiple line plots by group column is not displaying any curves

@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.

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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