Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.9K Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

[?] Make a 3D scatter plot using multiple data sets imported from excel?

I have multiple data sets in several excel (.xlsx) files that I want to visualize as a single 3D scatter plot. I can import each data set individually and plot them using the ListPointPlot3D command:

data3 = Import["/Users/hewittwm/Documents/Mathematica/data3.xlsx"]
ListPointPlot3D[data3, BoxRatios -> 1, PlotRange -> {{0, 3000}, {0, 1}, {0, 1}}, AxesLabel -> {"Volume", "Buriedness", "Hydrophobicity"}]

data4 = Import["/Users/hewittwm/Documents/Mathematica/data4.xlsx"]
ListPointPlot3D[data4, BoxRatios -> 1, PlotRange -> {{0, 3000}, {0, 1}, {0, 1}}, AxesLabel -> {"Volume", "Buriedness", "Hydrophobicity"}]

But when I try to plot both together:

ListPointPlot3D[{data3,data4}]

I get an error saying "must be a valid array or a list of valid arrays"

How do I resolve this? Is there a better way to go about plotting my data points in 3D? Any advice would be greatly appreciated as I am fairly new to Mathematica and the Wolfram Language.

POSTED BY: William Hewitt
3 Replies

Hi William,

I haven't got your data but the Show command might be helpful:

data1 = RandomReal[1, {100, 3}]; data2 = RandomReal[0.5, {100, 3}];
Show[ListPointPlot3D[data1], ListPointPlot3D[data2, PlotStyle -> Red]]

enter image description here

Cheers,

Marco

POSTED BY: Marco Thiel

Marco,

Thanks! That's exactly what I needed!

Will

POSTED BY: William Hewitt
POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard