Drawing lines between data points
Is there a way to draw lined between points? I'd need that functionality for a University project.
Points alone won't do. I would need to be able to draw straight lines between data points. Having the possibility of drawing broken lines between 2 data points would be even nicer.
Thanks.
Is it feasible to download the digitized data and use a plotting tool (e.g. Matlab, R etc.) to overlay the original image with the plotted data (with lines)?
If you want this in WPD, then you might be able to write a script that adds the dotted lines - but I'm not sure how useful that would be to you.
Actually I need to draw the lines. The underlying "plot" is a graph, so there's no way to generate the connections automatically. Then I need to export the connections in the JSON, as well as the dots.
Could you add this feature? If not, do you know of any tool that can do the job? Thanks.
Since this is not a graphing package, adding that facility might not happen anytime soon. I think you need take the following approach:
- Use WPD to determine values at existing points.
- Export the .CSV and use a regular graphing tool (e.g. matlab, R etc.) to show the original image and superimpose the "lines" that these packages are good at making. You might need to run a script in WPD to fetch the pixel calibration from WPD that these packages need (I can share that script).
I can make a small R script that can help you do this - I can get back to you by tomorrow.
Actually, I'm using this on an actual map (not a stylized plot), and I need digitize the data of a power grid. I have various symbols (power plants and cities) marked on the map and the power lines between the locations are not straight. In your opinion, what could best suite my use case? Thanks.
I think that having lines drawn between points would be very helpful! My use case is that sometimes, I have data with colored lines between the observed data points. The observed data points may go into a cloud where it is impossible to see the specific point, but I can track the line into and out of the cloud of points.
Were there a line in WPD, then I could ensure that the WPD-drawn lines overlap the graph's lines and have greater precision for my results.
Were this implemented with grouping of points (#71), then the line would go between values of the first point in the group to the first point in the next group (secondary points in the group would not get lines).
From a UI perspective, this could be a new section indicating "Draw lines between points" either on the left or right side of the image. (If preferred to prevent UI clutter, it could be set as a preference somewhere to enable or disable that feature.)
One more consideration for this feature:
Most of the time, I enter my data from left to right, but sometimes, I find that I missed a value as I progress and enter a value out of numerical order. It would help to have one option to plot the points in the order they were entered and another option to plot the points sorted from smallest to largest in the x-direction.
Almost all my plots are 2-dimensional x-y or bar chart in type; in a generalized solution, sorting in the equivalent of x like the angle in polar coordinates. For more complex figures like ternary diagrams, I don't think that there is an obvious sorting order, so it may just need to be without sorting.
As I was typing this, perhaps even better than sorting would be to allow the user to sort the points manually. Sorting is a different type of request, so I'll open a new issue for it.
(Sorry for the stream of consciousness issue writing, but I think that this will provide context for the new issue.)