plots icon indicating copy to clipboard operation
plots copied to clipboard

Suggestion: default for line shape be changed.

Open GregorySchwartz opened this issue 8 years ago • 2 comments

Although subjective, I believe the default line shapes should be:

lineStyle . _lineCap .= LineCapSquare
lineStyle . _lineJoin .= LineJoinBevel

Particularly LineJoinBevel. The default is very misleading. For instance, using the code in https://github.com/cchalmers/plots/issues/34 without that line result in a large angular join which extends beyond the axis to such a large degree, even though the values never go below 0.

GregorySchwartz avatar Jul 27 '17 20:07 GregorySchwartz

I thinkLineJoinBevel for line plots looks a little strange. I had a little look around and the defaults for the line joins are:

  • pgfplots: miter
  • gnuplot: miter
  • ggplot: round
  • matplotlib: round

Everyone uses butt for the default line cap. I could be persuaded to change the default to LineJoinRound but personally I think miter goes better with rest of the default look.

I'll admit the case in #34 is particularly bad but it's easy enough to change the join. Also the default is to crop plots to the axis bounds so if yMin was set to 0 the join wouldn't have extended below 0.

cchalmers avatar Jul 28 '17 23:07 cchalmers

Ah, I am used to ggplot and matplotlib so my preference was biased more towards those less angular looks.

GregorySchwartz avatar Jul 29 '17 02:07 GregorySchwartz