Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlotColors changes plot style

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PlotColors changes plot style

    PlotColors works just fine for changing the colors, however, it also changes my plot lines back to solid. Some of my plot lines are thicker than others. The thickness appears to be unaffected, but the style always reverts back to solid. I am sure it is something simple.

    for( i=0; i<6; i++)
    {
    Values[i].Set( plot_history[i][0] );

    if( Rising( Values[i] ) ) PlotColors[i][0] = short_up_color;
    else if( Falling( Values[i] ) ) PlotColors[i][0] = short_down_color;
    }

    #2
    Hello,

    Thank you for the question.

    Can you please post your initialize section where you create the plots? I would like to see what you are doing so I can test this on my end.

    If this is a short script you can attach the entire script if you would like, otherwise please provide the lines in your Initialize so I can test this.

    I look forward to being of further assistance.

    Comment


      #3
      From Initialize()

      plot_history = new DataSeries[6];

      for( i=0; i<6; i++ )
      {
      Add( new Plot( short_up_color, PlotStyle.Line, "Plot" + i.ToString() ) );
      plot_history[i] = new DataSeries( this );
      }

      Plots[0 ].Pen.Width = 3;
      Plots[0 ].Pen.DashPattern = new float[]{3.0F, 1.0F};

      Comment


        #4
        Hello,

        Thank you for providing that.

        It looks like the PlotColors specifically is overriding the Line to color it so when using a DashStyle it is overridden.

        In this situation to both color the plot using PlotColors and use a Dashed line, you would need to use one of the pre-defined types such as Hash, Block, Dot or Cross.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X