You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a surface plot, but it is not always the case that every point within the range I'm plotting over is defined. That is, my z matrix might resemble:
If I try to create a surface plot using the above as the z matrix, the surface gets cut off and not all of the data is plotted. If I replace undefined with null or NaN, the same happens. If I replace undefined with empty, the code fails.
The only way I can get the rest of the data to plot is by replacing undefined with 0. However, this "pulls" the surrounding surface down to 0, which is misleading and especially problematic when all other data is much greater than 0.
I would be shocked if plotting an incomplete dataset is not a very common use case, and currently there's no good way to do it. I believe it would be usefull to provide a more intelligent handling for missing data. This could be leaving part of the surface out, or interpolating the missing value from surrounding values.
The text was updated successfully, but these errors were encountered:
benauriemma
changed the title
Intelligent handling of missing data for surface plots
Intelligent handling of missing data for surface plots type: feature request
Jul 12, 2018
benauriemma
changed the title
Intelligent handling of missing data for surface plots type: feature request
Intelligent handling of missing data for surface plots
Jul 12, 2018
Adding a way to interpolate (assuming that's what you mean by "intelligent handling") for missing z values in surface would be great addition. In plotly.js lingo, we call this connectgaps: true as is already available for heatmap and contour traces.
@benauriemma ok if change the issue title accordingly?
@etpinard , yes, I think that would be a great way of handling it intelligently. Github is not allowing me to change the title of the issue right now, but I will try again later.
"connectgaps for surface plots with missing data"
etpinard
changed the title
Intelligent handling of missing data for surface plots
Implement "connectgaps" for surface traces
Jul 13, 2018
I'm trying to create a surface plot, but it is not always the case that every point within the range I'm plotting over is defined. That is, my z matrix might resemble:
If I try to create a surface plot using the above as the z matrix, the surface gets cut off and not all of the data is plotted. If I replace
undefined
withnull
orNaN
, the same happens. If I replaceundefined
with empty, the code fails.The only way I can get the rest of the data to plot is by replacing
undefined
with0
. However, this "pulls" the surrounding surface down to 0, which is misleading and especially problematic when all other data is much greater than 0.I would be shocked if plotting an incomplete dataset is not a very common use case, and currently there's no good way to do it. I believe it would be usefull to provide a more intelligent handling for missing data. This could be leaving part of the surface out, or interpolating the missing value from surrounding values.
The text was updated successfully, but these errors were encountered: