Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add thread and ternary plots #438

Closed
wants to merge 1 commit into from
Closed

add thread and ternary plots #438

wants to merge 1 commit into from

Conversation

loriab
Copy link
Collaborator

@loriab loriab commented Oct 14, 2019

Description

DON'T MERGE as this is only rewrites of matplotlib routines that function on data. Presently no integration with QCA.

Todos

  • plotly threads plot
  • plotly ternary plot
  • plotly threads plot of qcf data
  • plotly ternary plot of qcf data
  • find a decent RGB colormap in plotly -- their "Jet" is very dark so that red/blue are hard to distinguish

Screen Shot 2019-10-14 at 11 09 36 AM

Screen Shot 2019-10-14 at 11 08 52 AM

Questions

  • Using the plotly built-in ternary would be nice, but I don't see plotting two at once or turning one upside down. If anyone sees a better path, let me know.

Status

  • Changelog updated
  • Ready to go

@lgtm-com
Copy link

lgtm-com bot commented Oct 14, 2019

This pull request introduces 3 alerts when merging 7f5a94b into 7f5585d - view on LGTM.com

new alerts:

  • 3 for Unused local variable

@dgasmith
Copy link
Contributor

Cool! This looks great.

I agree that we need to hand code the ternaries from Plotly basics rather than their built in function.

You may want to turn off the grid lines, like so..

@@ -229,3 +229,280 @@ def scatter_plot(traces: List[Dict[str, Any]],
figure = go.Figure(data=data, layout=layout)

return _configure_return(figure, "qcportal-violin", return_figure)


def threads(data, labels, color=None, title='', xlimit=4.0, mae=None, mape=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

We usually use mue/mure over mae/mape.

@loriab
Copy link
Collaborator Author

loriab commented Oct 14, 2019

turn off the blue bkgd + white grid lines for both ternary and threads or just the former?

@dgasmith
Copy link
Contributor

For ternary for sure. For the threads you may want to consider shifting the chart +/- 0.5 to have the grid correctly line up, may with a view.

@bennybp bennybp closed this Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants