| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Methods Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Properties > Perspective Property SharpPlot.Perspective PropertyTo get a good feel for the depth of a 3D chart it is essential to have a small degree of perspective distortion in the projection. This is controlled by how far away from the plot the ‘camera’ is placed – in SharpPlot the default is 12, meaning 12 chart-widths back from the virtual 3D image. To reduce the distortion, make this a big number (above 50 you will find that all the verticals become vertical); to increase it, move the ‘camera’ towards the plot. public double Perspective {get; set;} Examplesp.Perspective = 20; You will find that 7 is about as close as you can reasonably go without producing very exaggerated effects. Numbers less than this will start to give spurious ‘inside-out’ views and (eventually) strange errors. Isometric ProjectionsTo make an Excel-style 3D chart, you should set the perspective to 0 which generates an isometric view, rather than a true perspective image. This can be used with the Towerchart to make simple ‘column charts’ in Excel style. See also ... |