Wolfram 语言

可视化:标签、缩放和排除

绘制有单位的高程图

美国大陆边界区域的高程数据的单位为米,范围从深达 5,700 米的海洋到高达 3,700 米的落基山脉.

In[1]:=
Click for copyable input
us = GeoElevationData[\!\(\* NamespaceBox["LinguisticAssistant", DynamicModuleBox[{Typeset`query$$ = "lower 48", Typeset`boxes$$ = TemplateBox[{"\"Continental US states\"", RowBox[{"EntityClass", "[", RowBox[{"\"AdministrativeDivision\"", ",", "\"ContinentalUSStates\""}], "]"}], "\"EntityClass[\\\"AdministrativeDivision\\\", \ \\\"ContinentalUSStates\\\"]\"", "\"administrative divisions\""}, "EntityClass"], Typeset`allassumptions$$ = {}, Typeset`assumptions$$ = {}, Typeset`open$$ = {1, 2}, Typeset`querystate$$ = { "Online" -> True, "Allowed" -> True, "mparse.jsp" -> 0.741402`6.321598746740357, "Messages" -> {}}}, DynamicBox[ToBoxes[ AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic, Dynamic[Typeset`query$$], Dynamic[Typeset`boxes$$], Dynamic[Typeset`allassumptions$$], Dynamic[Typeset`assumptions$$], Dynamic[Typeset`open$$], Dynamic[Typeset`querystate$$]], StandardForm], ImageSizeCache->{323., {7., 15.}}, TrackedSymbols:>{ Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$, Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}], DynamicModuleValues:>{}, UndoTrackedVariables:>{Typeset`open$$}], BaseStyle->{"Deploy"}, DeleteWithContents->True, Editable->False, SelectWithContents->True]\), UnitSystem -> "Meters"]
Out[1]=
In[2]:=
Click for copyable input
MinMax[us]
Out[2]=

将高程数据绘制成地貌图,同时自动处理单位.

In[3]:=
Click for copyable input
ReliefPlot[us, DataReversed -> True, ImageSize -> 500, ColorFunctionScaling -> False, ColorFunction -> ColorData["HypsometricTints"], PlotLegends -> Placed[Automatic, Below]]
Out[3]=

将数据绘制成填充三维表面图.

In[4]:=
Click for copyable input
ListPlot3D[Reverse[us], ImageSize -> 500, ColorFunctionScaling -> False, ColorFunction -> ColorData["HypsometricTints"], BoxRatios -> {2, 1, 1/2}, PlotTheme -> {"FilledSurface", "Minimal"}]
Out[4]=

相关范例

de en es fr ja ko pt-br ru