Lecture note Data visualization - Chapter 24
Số trang: 35
Loại file: pptx
Dung lượng: 3.22 MB
Lượt xem: 2
Lượt tải: 0
Xem trước 4 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
The main contents of the chapter consist of the following: Plots with more than one line, plots of complex arrays, line, color and mark style, axis scaling and annotating plots, subplots, polar plots, logarithmic plots, bar graphs and pie charts, histograms, X-Y graphs with two Y-axes.
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 24Lecture24RecapPlotswithMorethanoneLinePlotsofComplexArraysLine,ColorandMarkStyleAxisScalingandAnnotatingPlotsSubplotsPolarPlotsLogarithmicPlotsBarGraphsandPieChartsFunctionPlotsThreeDimensionalLinePlotsTheplot3functionissimilartotheplotfunction,except thatitacceptsdatainthreedimensionsInsteadofjustprovidingxandyvectors,theusermust alsoprovideazvectorTheseorderedtriplesarethenplottedinthreespaceand connectedwithstraightlinesForexample: clear,clc x=linspace(0,10*pi,1000); y=cos(x);SurfacePlotsSurfaceplotsallowtorepresentdataasasurfaceTwotypesofsurfaceplots Meshplots SurfplotsMeshPlotsThereareseveralwaystousemeshplotsTheycanbeusedtogoodeffectwithasingletwo dimensionalmxnmatrixInthisapplication,thevalueinthematrixrepresentsthe zvalueintheplotThexandyvaluesarebasedonthematrixdimensions Take,forexample,thefollowingverysimplematrix: z=[1,2,3,4,5,6,7,8,9,10; 2,4,6,8,10,12,14,16,18,20; 3,4,5,6,7,8,9,10,11,12];ExplanationofGraphThegraphisa“mesh”createdbyconnectingthepoints definedinzintoarectilineargridNoticethatthexaxisgoesfrom0to10andygoesfrom 1to3ThematrixindexnumberswereusedfortheaxisvaluesMeshPlotsContinued….Themeshfunctioncanalsobeusedwiththreearguments: mesh(x,y,z)Inthiscase,xisalistofxcoordinates,yisalistofy coordinates,andzisalistofzcoordinates. x=linspace(1,50,10) y=linspace(500,1000,3) z=[1,2,3,4,5,6,7,8,9,10; 2,4,6,8,10,12,14,16,18,20; 3,4,5,6,7,8,9,10,11,12]SurfPlotsSurfplotsaresimilartomeshplots,butsurfcreatesa threedimensionalcoloredsurfaceinsteadofameshThecolorsvarywiththevalueofzThesurfcommandtakesthesameinputasmesh:eithera singleinput—Forexample:surf(z),inwhichcaseitusestherowand columnindicesasx–andycoordinates—orthree matricesThecommand surf(x,y,z)Continued….Theshadingschemeforsurfaceplotsiscontrolledwith theshadingcommandThedefault(showninpreviousslide)is“faceted.”InterpolatedshadingcancreateinterestingeffectsTheplot(innextslide)iscreatedbyadding shadinginterp tothepreviouslistofcommandsContinued….Flatshadingwithoutthegridisgeneratedwhen shadingflat isusedContinued….Thecolorschemeusedinsurfaceplotscanbecontrolled withthecolormapfunctionForexample: colormap(gray) forcesagrayscalerepresentationforsurfaceplotsThismaybeappropriateifyou’llbemakingblackand whitecopiesofyourplotsOtheravailablecolormapsare autumn bone hot spring colorcube hsvExampleAmorecomplicatedsurfacecanbecreatedbycalculating thevaluesofZ: x=[2:0.2:2]; y=[2:0.2:2]; [X,Y]=meshgrid(x,y); Z=X.*exp(X.^2Y.^2);Intheprecedingcode,themeshgridfunctionisusedto createthetwodimensionalmatricesXandYfromthe onedimensionalvectorsxandyThevaluesinZarethencalculated
Nội dung trích xuất từ tài liệu:
Lecture note Data visualization - Chapter 24Lecture24RecapPlotswithMorethanoneLinePlotsofComplexArraysLine,ColorandMarkStyleAxisScalingandAnnotatingPlotsSubplotsPolarPlotsLogarithmicPlotsBarGraphsandPieChartsFunctionPlotsThreeDimensionalLinePlotsTheplot3functionissimilartotheplotfunction,except thatitacceptsdatainthreedimensionsInsteadofjustprovidingxandyvectors,theusermust alsoprovideazvectorTheseorderedtriplesarethenplottedinthreespaceand connectedwithstraightlinesForexample: clear,clc x=linspace(0,10*pi,1000); y=cos(x);SurfacePlotsSurfaceplotsallowtorepresentdataasasurfaceTwotypesofsurfaceplots Meshplots SurfplotsMeshPlotsThereareseveralwaystousemeshplotsTheycanbeusedtogoodeffectwithasingletwo dimensionalmxnmatrixInthisapplication,thevalueinthematrixrepresentsthe zvalueintheplotThexandyvaluesarebasedonthematrixdimensions Take,forexample,thefollowingverysimplematrix: z=[1,2,3,4,5,6,7,8,9,10; 2,4,6,8,10,12,14,16,18,20; 3,4,5,6,7,8,9,10,11,12];ExplanationofGraphThegraphisa“mesh”createdbyconnectingthepoints definedinzintoarectilineargridNoticethatthexaxisgoesfrom0to10andygoesfrom 1to3ThematrixindexnumberswereusedfortheaxisvaluesMeshPlotsContinued….Themeshfunctioncanalsobeusedwiththreearguments: mesh(x,y,z)Inthiscase,xisalistofxcoordinates,yisalistofy coordinates,andzisalistofzcoordinates. x=linspace(1,50,10) y=linspace(500,1000,3) z=[1,2,3,4,5,6,7,8,9,10; 2,4,6,8,10,12,14,16,18,20; 3,4,5,6,7,8,9,10,11,12]SurfPlotsSurfplotsaresimilartomeshplots,butsurfcreatesa threedimensionalcoloredsurfaceinsteadofameshThecolorsvarywiththevalueofzThesurfcommandtakesthesameinputasmesh:eithera singleinput—Forexample:surf(z),inwhichcaseitusestherowand columnindicesasx–andycoordinates—orthree matricesThecommand surf(x,y,z)Continued….Theshadingschemeforsurfaceplotsiscontrolledwith theshadingcommandThedefault(showninpreviousslide)is“faceted.”InterpolatedshadingcancreateinterestingeffectsTheplot(innextslide)iscreatedbyadding shadinginterp tothepreviouslistofcommandsContinued….Flatshadingwithoutthegridisgeneratedwhen shadingflat isusedContinued….Thecolorschemeusedinsurfaceplotscanbecontrolled withthecolormapfunctionForexample: colormap(gray) forcesagrayscalerepresentationforsurfaceplotsThismaybeappropriateifyou’llbemakingblackand whitecopiesofyourplotsOtheravailablecolormapsare autumn bone hot spring colorcube hsvExampleAmorecomplicatedsurfacecanbecreatedbycalculating thevaluesofZ: x=[2:0.2:2]; y=[2:0.2:2]; [X,Y]=meshgrid(x,y); Z=X.*exp(X.^2Y.^2);Intheprecedingcode,themeshgridfunctionisusedto createthetwodimensionalmatricesXandYfromthe onedimensionalvectorsxandyThevaluesinZarethencalculated
Tìm kiếm theo từ khóa liên quan:
Data visualization Lecture note Data visualization Data structures Data Visualization with C Data visualization with matlab Effective graphical displayGợi ý tài liệu liên quan:
-
Trực quan hóa dữ liệu: Vai trò & thử thách
10 trang 37 0 0 -
Ebook Eloquent JavaScript - A modern introduction to programming: Part 1
199 trang 32 0 0 -
Ebook Management support systems: Part 2 - Dr. Kamlesh Lakhwani
136 trang 31 0 0 -
Lecture Introduction to computing systems (2/e): Chapter 19 - Yale N. Patt, Sanjay J. Patel
28 trang 30 0 0 -
Ebook Introduction to algorithms (3rd edition)
1313 trang 27 0 0 -
Lecture Data Structures: Lesson 38
71 trang 26 0 0 -
Lecture Data structures and algorithms: Chapter 1 - Introduction
41 trang 26 0 0 -
Lecture note Data visualization - Chapter 22
21 trang 24 0 0 -
Lecture Data Structures: Lesson 41
18 trang 23 0 0 -
335 trang 23 0 0