I would like to add labels to contour lines as shown in this previous post.
https://www.scichart.com/questions/wpf/is-it-possible-to-do-contour-plots
I have created the heat map with contours, and now I want to programmatically add labels. To this end. I have created a contour series in my view model
var contourSeries = new FastUniformContourRenderableSeries
{
DataSeries = dataSeries,
ZMin = 0.0,
ZMax = 50.0,
ZStep = 4.0
};
This is the same series as I have already plotted. I have looked through this object, trying to find the plotted contour lines, so I can calculate positions to put labels, but I have not found the data. Can you tell me how to extract the plotted contour curve data?
- Stephen Painchaud asked 5 years ago
- You must login to post comments
Hello Stephen,
Thank you for your inquiry. I am sorry for the late reply.
Unfortunately, ContourSeries API doesn’t support drawing contour labels currently. Neither there is a way to obtain contour data from a series.
Could you please specify which data do they need?
You can also create a new feature request and let people vote for it. Here is how to do this:
https://www.youtube.com/watch?v=cWa6bRCCAFE
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
I was under a deadline to find the answer. Although I tried SciChart first, I ended up using OxyPlot. It provided both a heat map and contour plot with log-log axis, and the contours already had labels. The labels could be configured to have a transparent background. The code is available on Github
- Stephen Painchaud answered 5 years ago
- You must login to post comments
Please login first to submit.