MCPcopy Index your code
hub / github.com/plotly/plotly.py / make_rug

Method make_rug

plotly/figure_factory/_distplot.py:418–441  ·  view source on GitHub ↗

Makes the rug plot(s) for create_distplot(). :rtype (list) rug: list of rug plot representations

(self)

Source from the content-addressed store, hash-verified

416 return curve
417
418 def make_rug(self):
419 """
420 Makes the rug plot(s) for create_distplot().
421
422 :rtype (list) rug: list of rug plot representations
423 """
424 rug = [None] * self.trace_number
425 for index in range(self.trace_number):
426 rug[index] = dict(
427 type="scatter",
428 x=self.hist_data[index],
429 y=([self.group_labels[index]] * len(self.hist_data[index])),
430 xaxis="x1",
431 yaxis="y2",
432 mode="markers",
433 name=self.group_labels[index],
434 legendgroup=self.group_labels[index],
435 showlegend=(False if self.show_hist or self.show_curve else True),
436 text=self.rug_text[index],
437 marker=dict(
438 color=self.colors[index % len(self.colors)], symbol="line-ns-open"
439 ),
440 )
441 return rug

Callers 1

create_distplotFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected