Skip to content

Conversation

@jackparmer
Copy link
Contributor

No description provided.

@jackparmer
Copy link
Contributor Author

jackparmer commented Aug 9, 2021

Brings pre-defined themes from Plotly Python library and adds addtheme function.

Usage:

x = randn(10000,1); h = histogram(x) f = fig2plotly(gcf, 'open', false) 

image

addtheme(f, 'plotly_dark') plotlyoffline(f) 

image

addtheme(f, 'ggplot2') plotlyoffline(f) 

image

addtheme(f, 'bugs bunny') plotlyoffline(f) 

image

@jackparmer
Copy link
Contributor Author

Copy link
Contributor

@xarico10 xarico10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works good, however, I have some recommendations for addtheme.m:

  1. The 80 column limit is being violated in line 10
  2. I think that in line 28 and 33 I don't think that brackets are needed. There's a warning on those lines regarding this issue:

Captura de Pantalla 2021-08-09 a la(s) 1 43 03 p  m

@jackparmer
Copy link
Contributor Author

@xarico10 Great feedback. Addressed in 2004548
Please see what you think!

@jackparmer jackparmer merged commit 0c42866 into master Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants