I have a dictionary of points:
dictDistances = {A:{B:1.23, C:3.56}, B:{A:1.23, C:2.38}, C:{A:3.56, B:2.38}}
And I would like to plot them without using the absolute values, i.e. using the values from the dictionary. I can draw that, but I don't understand, how to do that in Python.
***There are much more than 3 points, like 300, I've just added this dictionary in order to demonstrate the kind of information I have.
****My points (each of 3) may not or may satisfy the triangle inequality theorem
UPDATE
What it's going to look like, given points A, B, C, D, E, F and some distances of range from x:y between them:
On the image provided you can see sets of all distances, i.e:
AB AC AD AF AE
BA BC BD BF BE
CB CA CD CF CE
DB DC DA DF DE
EB EC ED EF EA
FB FC FD FA FE
UPDATE 2
Rays: Ray A:
Ray B:
Ray C:
And the same for the rays E,D,F. Then I need to verify/modify them somehow. That's what I don't understand how to do in Python. Though it is absolutely possible to draw.
I believe what you need to do is:
Dict_comp[A] = set((B, 1.3), (C, 9.5), (D, 20.3)) etc...
This example from matplotlib will help you with polar coordinates - you'll have r from each of two existing points, then you can figure out theta. I wouldn't ever use more than two existing points to locate a third, given this info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With