Can The Line Dash Of A Segment Plot Be Defined By Source Data?
Can the line_dash parameter of a segment plot depend on the source data? data = {} data['dash'] = ['dashed','dashed','solid'] data['x0'] = [0,1,2] data['x1'] = [5,6,8] data['y0'] =
Solution 1:
The line_dash
property is not currently "vectorizable" in the way that many other properties (e.g. color, alpha, position, etc.) are. You can look in the Reference Guide for Segment.line_dash
and see that its property type is DashPattern
. All the properties that are vectorizable will have "Spec" in the type name, e.g Segment.line_alpha
has a property type NumberSpec
, so that indicates that you can set the alpha value to either one number, or it can refer to a list of numbers in a ColumnDataSource to vectorize different alphas.
It's possible this situation could be change, there has just never been any evident demand for it, so it was not prioritized. Feel free to make a Github feature request issue to discuss further.
Post a Comment for "Can The Line Dash Of A Segment Plot Be Defined By Source Data?"