当前位置:网站首页>[data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1
[data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1
2022-06-25 12:47:00 【Coconut brine Engineer】
Effectively convey the meaning behind the data to the observer through visual perception . We will learn how computers use computer graphics to display information , And how humans perceive this information visually . We will also study the form of data , Including quantitative and non quantitative data , And how they are correctly mapped to visual elements to be well perceived by the observer .
One 、 Visualization overview
Visualization mode , Generally speaking , These are important for understanding data visualization .
1、 Interactive visualization
This is a visualization for discovery . Usually , It's a single user , Maybe one or two collaborators may join , But it's basically a user in front of a computer . And draw the data to try to understand what the data means . Can completely control the data , And you can change the dataset and how it is displayed dynamically , To help understand what users are viewing .
2、 Rendering visualization
This kind of visualization is what you see in videos or slides . The purpose is to convey some aspects of the data to a large audience , The difference between presentation visualization and interactive visualization is : Rendering visualization does not support user input , You can only sit there and observe, but you can't interact with the data , The data you get has been packaged , Can help you understand but can't interact .
3、 Interactive storytelling
They belong to demonstration visualization , Present in the form of interactive web pages , Allows users to interact with data in limited ways , Viewers cannot modify the dataset , But it can further investigate the data , More information can be presented at one time , Just like rendering Visualization .
Two 、 graphics 、 Drawing and realism
Two dimensional graphics
So for most data visualization tasks , We only need two-dimensional computer graphics to draw and display data . To do this , We need to use different coordinate systems . We use different coordinate systems to plot the data , Instead of displaying data .
Vector graphics
Graphics for drawing , Describe shape . For example, pick up a pen and draw a straight line .
Raster graphics
Use a pixel table to display shapes . For example, the mobile screen , They are linear arrays of pixels , These pixels are the specified colors . By specifying certain colors for certain pixels , Can represent different shapes .
Gridding
You will describe a point , Start and end lines and points , You'll get a straight line , Or the smooth curve between them , These will be converted to raster graphics display , It will be composed of illuminated pixels. The path shows the path you describe in vector graphics .

When we draw primitives in two dimensions , When we want to draw the shape of a two-dimensional figure , For example, for drawing triangle functions , We need a coordinate system , Then draw these shapes , So that we know where to place the vertex .
SVG Example
You can visit wthreeschools.com, There are scalable vector graphics (SVG) A tutorial for .
Two dimensional drawing
Scalable vector graphics specification is a method to describe two-dimensional graphics of various systems . One of the systems it uses is HTML, So you can use the HTML Put a... In the code SVG Label to embed 2D graphics .
Its width and height , Usually in pixels . When svg When used for web pages , Used to describe the document system . We tend to go from left to right 、 Reading from top to bottom , And set the coordinate system properly .
<svg width=pw height=ph viewbox="x y w h">......</svg>
3D graphics
To understand the working principle of three-dimensional computer graphics , We must first understand how light leaves light and shadow , Reflected from an object , Then reach your eyes , So it can be perceived .
in real life , We have a light source 、 An object that reflects light and a sensor , This is our eyes .

When the light leaves , The sun and it are the slightest in the whole spectrum , So it's basically white , But then the light shot into the sky , The sky scatters light in different ways . Based on the spectral region it processes , So the red wavelength light is less scattered , Light at blue wavelengths is more scattered , So the light is scattered to other places in the sky , Make the sky blue , This makes the sun look yellow , Because the light is always there . The yellow sun shines on the trees 、 On grass or any other biota . Some wavelengths of light are absorbed by chlorophyll molecules , And become a thermal compound , Provide nutrition for trees . So chlorophyll absorbs light mainly in the blue area .
So we can simulate this process , For example, this camera , The vacuum camera has a very small aperture , Reflecting light from objects , under these circumstances , This little blue rabbit , Through a focus , It is projected onto an image plane , Then in modern times CCD Array camera .

Another thing we want to do is create a sense of perspective , Make distant things seem small , Something close seems big . In computer graphics , We do this by dealing with the primitives themselves . For example, the perspective scene of the teapot on the table in the following figure , It doesn't seem to be a problem , But if we look at it from the side , In fact, there are more front tables , The table in the back is smaller , So when it is projected onto a two-dimensional image plane , Get the correct scale of perspective rendering .

Realism
Realism will provide some visual cues , To tell our visual nervous system , To see a 2D When it comes to images , Let's imagine a 3D Scene . These techniques are : Occlusion . The shelter here makes you feel that the little boy's hand is outside the picture frame , It's stimulating your perception system and making you feel like a little boy crawling out of the picture frame , Instead of an image of a two-dimensional plane ; Other techniques include perspective , For example, the water wave in the picture , The closer it is to the horizon, the farther it cuts , The more closely the ripples on the picture are arranged ; Other techniques include illumination and so on .
One of the most effective methods is occlusion , Add some optical illusions to it , It's going to be very interesting .
In the process of data visualization , We can combine the two techniques .
for instance
We use the trajectory generated by particle motion to simulate the blood flow of aorta . Here we simulate the effect of occlusion in , You can make some tracks appear in front of others . You can see that the green track is in front of the blue track ; In addition, light is used , You can see that these trajectories are cylindrical , They have bright and dark sides , Because when light hits them, it also scatters ; At the same time, we can also see the perspective method , The object in front is relatively large , The objects behind are relatively compact and small , So the superposition of these techniques makes the viewer feel better .
边栏推荐
- PHP numeric array sorting and associative array sorting
- Happy shopkeeper source code -- Introduction to happy shopkeeper system development mode
- (3) Pyqt5 tutorial -- > signal and slot preliminary test
- PHP appends the same elements to a two-dimensional array
- 2021-09-30
- 重装cuda/cudnn/pytorch
- 浏览器的5种观察器
- Elemtnui select control combined with tree control to realize user-defined search method
- MySQL common interview questions
- 2021-09-22
猜你喜欢

Penetration tool environment - installing sqli labs in centos7 environment

Elemntui's select+tree implements the search function

Zhangxiaobai's way of penetration (VIII) - detailed operation steps of SQL injection - Boolean blind injection of blind injection

利用cmd(命令提示符)安装mysql&&配置环境
![最大数[抽象排序之抽象规则]](/img/47/f6bafacc95f487854a3e304325f3f0.png)
最大数[抽象排序之抽象规则]

架构师需要具备的能力

更新pip&下载jupyter lab

线上服务应急攻关方法论

Laravel excel export

(7) Pyqt5 tutorial -- > > window properties and basic controls (continuous update)
随机推荐
Total number of MySQL statistics, used and unused
Online blind box system development function introduction and some source code sharing
(5) Pyqt5 ---- another method of connecting signals and slots
Oracle trigger error report table or view does not exist
Laravel multi project mutual access
英语口语 - 连读
阿里稳定性之故障应急处理流程
Geospatial search - > R tree index
浏览器的5种观察器
The amount is verified, and two zeros are spliced by integers during echo
架构师必备的七种能力
PHP numeric array sorting and associative array sorting
Circular exercises of JS
node. JS architecture optimization: reverse proxy and cache service
Connect with the flight book and obtain the user information according to the userid
Initialize the project using the express framework
JS uses the for loop in the function to insert and delete the array at the specified position
JS enter three integers a, B and C, and sort them from large to small (two methods)
三入职场!你可以从我身上学到这些(附毕业Vlog)
Geospatial search: implementation principle of KD tree