Skip to content

Chart titles in Plot or Plotlyjs? #138

Answered by JerryI
gganapat asked this question in Q&A
Discussion options

You must be logged in to vote

We are very glad to hear that! 🚀

Regarding Plotly it was actually a bug.., that we did not pass Layout correctly. A new version is uploaded, you only need to open Settings and click Check Updates it will force frontend to fetch new version on the next startup.

The correct example then will look like

trace1 = <|
	"x" -> Range[100], 
	"y" -> Sinc @ Range[100] // N, 
	"mode" -> "markers"
|>;

layout = <|"xaxis" -><|"title" -> "Date"|>, "yaxis" -><|"title" -> "Power"|>|>;

Plotly[trace1, layout]

probably we need to use different margin parameter for default, but you can specify it in layout association

For more information in API, please check

  • Plotly
  • PlotlyAddTraces
  • PlotlyDeleteTraces
  • Plotl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gganapat
Comment options

Answer selected by JerryI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants