Skip to content

Add basic templates of visualisation charts utilized in EasyTexture #30

Open
koshchii wants to merge 7 commits intodevelopfrom
texture-app
Open

Add basic templates of visualisation charts utilized in EasyTexture #30
koshchii wants to merge 7 commits intodevelopfrom
texture-app

Conversation

@koshchii
Copy link

This PR contains several new templates necessary for visualisations in EasyTexture, as well as modifications to existing templates used there.

trace.theta = newData.theta
trace.marker.color = newData.z
trace.marker.cmin = Math.min(newData.z)
trace.marker.cmax = Math.min(newData.z)
Copy link
Member

Choose a reason for hiding this comment

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

Should this be Math.max(newData.z) instead?

Comment on lines -22 to -24
setXAxisTitle()
setYAxisTitle()
setXyData()
Copy link
Member

Choose a reason for hiding this comment

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

If setXAxisTitle(), setYAxisTitle(), and setXyData() (now setPlotData()) are not called after the HTML page finishes loading, then the chart keeps using the default values hardcoded in the HTML template, not the values already set in the QML wrapper.

property bool loadSucceededStatus: false
property string xAxisTitle: ''
property string yAxisTitle: ''
property string colorbarTitle: ''
Copy link
Member

Choose a reason for hiding this comment

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

colorbarTitle is introduced in Plotly2dHeatmap.qml, but the expected chain to propagate this change to the HTML template seems to be missing. Unlike Plotly2dPolarHeatmap.qml, I do not see onColorbarTitleChanged -> setColorbarTitle() here.

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.

2 participants