Python: connecting close dots in 3D scatter plotCalling an external command in PythonWhat are metaclasses in Python?Is there a way to run Python on Android?Finding the index of an item given a list containing it in PythonWhat is the difference between Python's list methods append and extend?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?Does Python have a string 'contains' substring method?
Factoring the square of this polynomial?
Is it appropriate for a prospective landlord to ask me for my credit report?
Can I switch to third-person while not in 'town' in Destiny 2?
LeetCode: Pascal's Triangle C#
Why is Boris Johnson visiting only Paris & Berlin if every member of the EU needs to agree on a withdrawal deal?
What is the appropriate benchmark for a Long/Short VIX futures strategy?
On the feasibility of space battleships
Co-author responds to email by mistake cc'ing the EiC
Why does my house heat up, even when it's cool outside?
Why is my Earth simulation slower than the reality?
Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?
How would one country purchase another?
Were there 486SX revisions without an FPU on the die?
Brexit and backstop: would changes require unanimous approval by all EU countries? Does Ireland hold a veto?
Patching SQL Server 2014 Versus SQL Server 2014 Express
What magic extends life or grants immortality?
Why is observed clock rate < 3MHz on Arduino Uno?
What does it mean to have a subnet mask /32?
In the MCU, why does Mjölnir retain its enchantments after Ragnarok?
Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?
What to say to a student who has failed?
Is refusing to concede in the face of an unstoppable Nexus combo punishable?
Avoiding racist tropes in fantasy
Sleeping solo in a double sleeping bag
Python: connecting close dots in 3D scatter plot
Calling an external command in PythonWhat are metaclasses in Python?Is there a way to run Python on Android?Finding the index of an item given a list containing it in PythonWhat is the difference between Python's list methods append and extend?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?Does Python have a string 'contains' substring method?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
short: I want to connect dots that are close to each other in a 3D scatter plot with lines to get some "3D wired look" 3D model.
Background: I got from a microscope an image stack from a fish. I want to show specific cells in that fish. The Software gives me X, Y, Z values of these cells and im plotting them in a scatter 3D plot. To get an context I collected a lot of values (XYZ) from the skin too and want to plot them "arround" the whole thing to get the look of an fish. If I would be able to connect these dots with lines Id get some kind of "wired" fish wich would be great. It would be even greater if id be able to fill the planes in the wire (that would be a 3D fish).
#data of the cells
X = np.array(df["X"])
Y = np.array(df["Y"])
Z = np.array(df["Z"])
#data of the fishskin
XF = np.array(df["XF"])
YF = np.array(df["YF"])
ZF = np.array(df["ZF"])
ax.scatter(XF, YF, ZF, s=40, c='b', marker='o')
ax.scatter(XV, YV, ZV, s=40, c='r', marker='o')
plt.show()
thats what I did so far, very basic but hey, im rookie.
The only language im a litte into is python but I also got MatLab and toyed arround with Blender a little. If you think my problem would be a lot easier to solve in one of these programs (maybe model the fish in blender end import him to Python or whatever) tell me! I was searching arround the whole day but maybe im using the wrong keywords or smthing couse I wasnt successfull.
python matplotlib 3d scatter
add a comment |
short: I want to connect dots that are close to each other in a 3D scatter plot with lines to get some "3D wired look" 3D model.
Background: I got from a microscope an image stack from a fish. I want to show specific cells in that fish. The Software gives me X, Y, Z values of these cells and im plotting them in a scatter 3D plot. To get an context I collected a lot of values (XYZ) from the skin too and want to plot them "arround" the whole thing to get the look of an fish. If I would be able to connect these dots with lines Id get some kind of "wired" fish wich would be great. It would be even greater if id be able to fill the planes in the wire (that would be a 3D fish).
#data of the cells
X = np.array(df["X"])
Y = np.array(df["Y"])
Z = np.array(df["Z"])
#data of the fishskin
XF = np.array(df["XF"])
YF = np.array(df["YF"])
ZF = np.array(df["ZF"])
ax.scatter(XF, YF, ZF, s=40, c='b', marker='o')
ax.scatter(XV, YV, ZV, s=40, c='r', marker='o')
plt.show()
thats what I did so far, very basic but hey, im rookie.
The only language im a litte into is python but I also got MatLab and toyed arround with Blender a little. If you think my problem would be a lot easier to solve in one of these programs (maybe model the fish in blender end import him to Python or whatever) tell me! I was searching arround the whole day but maybe im using the wrong keywords or smthing couse I wasnt successfull.
python matplotlib 3d scatter
add a comment |
short: I want to connect dots that are close to each other in a 3D scatter plot with lines to get some "3D wired look" 3D model.
Background: I got from a microscope an image stack from a fish. I want to show specific cells in that fish. The Software gives me X, Y, Z values of these cells and im plotting them in a scatter 3D plot. To get an context I collected a lot of values (XYZ) from the skin too and want to plot them "arround" the whole thing to get the look of an fish. If I would be able to connect these dots with lines Id get some kind of "wired" fish wich would be great. It would be even greater if id be able to fill the planes in the wire (that would be a 3D fish).
#data of the cells
X = np.array(df["X"])
Y = np.array(df["Y"])
Z = np.array(df["Z"])
#data of the fishskin
XF = np.array(df["XF"])
YF = np.array(df["YF"])
ZF = np.array(df["ZF"])
ax.scatter(XF, YF, ZF, s=40, c='b', marker='o')
ax.scatter(XV, YV, ZV, s=40, c='r', marker='o')
plt.show()
thats what I did so far, very basic but hey, im rookie.
The only language im a litte into is python but I also got MatLab and toyed arround with Blender a little. If you think my problem would be a lot easier to solve in one of these programs (maybe model the fish in blender end import him to Python or whatever) tell me! I was searching arround the whole day but maybe im using the wrong keywords or smthing couse I wasnt successfull.
python matplotlib 3d scatter
short: I want to connect dots that are close to each other in a 3D scatter plot with lines to get some "3D wired look" 3D model.
Background: I got from a microscope an image stack from a fish. I want to show specific cells in that fish. The Software gives me X, Y, Z values of these cells and im plotting them in a scatter 3D plot. To get an context I collected a lot of values (XYZ) from the skin too and want to plot them "arround" the whole thing to get the look of an fish. If I would be able to connect these dots with lines Id get some kind of "wired" fish wich would be great. It would be even greater if id be able to fill the planes in the wire (that would be a 3D fish).
#data of the cells
X = np.array(df["X"])
Y = np.array(df["Y"])
Z = np.array(df["Z"])
#data of the fishskin
XF = np.array(df["XF"])
YF = np.array(df["YF"])
ZF = np.array(df["ZF"])
ax.scatter(XF, YF, ZF, s=40, c='b', marker='o')
ax.scatter(XV, YV, ZV, s=40, c='r', marker='o')
plt.show()
thats what I did so far, very basic but hey, im rookie.
The only language im a litte into is python but I also got MatLab and toyed arround with Blender a little. If you think my problem would be a lot easier to solve in one of these programs (maybe model the fish in blender end import him to Python or whatever) tell me! I was searching arround the whole day but maybe im using the wrong keywords or smthing couse I wasnt successfull.
python matplotlib 3d scatter
python matplotlib 3d scatter
asked Mar 27 at 16:27
Albus DumbledoreAlbus Dumbledore
52 bronze badges
52 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If I understand your question correctly, you would like to create an unstructured triangular grid. If this is the case, then I suggest you check out this tutorial on the Matplotlib website.
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382126%2fpython-connecting-close-dots-in-3d-scatter-plot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If I understand your question correctly, you would like to create an unstructured triangular grid. If this is the case, then I suggest you check out this tutorial on the Matplotlib website.
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
add a comment |
If I understand your question correctly, you would like to create an unstructured triangular grid. If this is the case, then I suggest you check out this tutorial on the Matplotlib website.
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
add a comment |
If I understand your question correctly, you would like to create an unstructured triangular grid. If this is the case, then I suggest you check out this tutorial on the Matplotlib website.
If I understand your question correctly, you would like to create an unstructured triangular grid. If this is the case, then I suggest you check out this tutorial on the Matplotlib website.
answered Mar 27 at 16:31
SheldonSheldon
6255 silver badges15 bronze badges
6255 silver badges15 bronze badges
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
add a comment |
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
Yes, the idea is right but I need it to be automated. Its to much data to do connect the dots manually.
– Albus Dumbledore
Mar 27 at 16:59
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382126%2fpython-connecting-close-dots-in-3d-scatter-plot%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown