File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -473,13 +473,6 @@ impl Curve {
473
473
474
474
/// Returns options for curve
475
475
fn options ( & self ) -> String {
476
- // fix color if marker is void
477
- let line_color = if self . marker_void && self . line_color == "" {
478
- "red"
479
- } else {
480
- & self . line_color
481
- } ;
482
-
483
476
// output
484
477
let mut opt = String :: new ( ) ;
485
478
@@ -492,8 +485,8 @@ impl Curve {
492
485
if self . line_alpha > 0.0 {
493
486
write ! ( & mut opt, ",alpha={}" , self . line_alpha) . unwrap ( ) ;
494
487
}
495
- if line_color != "" {
496
- write ! ( & mut opt, ",color='{}'" , line_color) . unwrap ( ) ;
488
+ if self . line_color != "" {
489
+ write ! ( & mut opt, ",color='{}'" , self . line_color) . unwrap ( ) ;
497
490
}
498
491
if self . line_style != "" {
499
492
write ! ( & mut opt, ",linestyle='{}'" , self . line_style) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ fn test_curve() -> Result<(), StrError> {
20
20
. set_marker_void ( false )
21
21
. set_marker_line_color ( "#cda500" )
22
22
. set_marker_line_width ( 3.0 )
23
- . set_marker_size ( 8 .0)
23
+ . set_marker_size ( 15 .0)
24
24
. set_marker_style ( "p" ) ;
25
25
26
26
// another curve
27
27
let mut curve2 = Curve :: new ( ) ;
28
28
curve2
29
29
. set_line_style ( "None" )
30
- . set_marker_line_color ( "#1862ab ")
31
- . set_marker_style ( "8" )
30
+ . set_marker_style ( "o ")
31
+ . set_marker_size ( 20.0 )
32
32
. set_marker_void ( true ) ;
33
33
34
34
let mut curve3 = Curve :: new ( ) ;
You can’t perform that action at this time.
0 commit comments