当前位置:网站首页>Qtcharts notes (V) scatter diagram qscatterseries
Qtcharts notes (V) scatter diagram qscatterseries
2022-07-03 23:59:00 【I'm classmate Huang】
One .QScatterSeries Introduce
Original document
1.The QScatterSeries class presents data in scatter charts
The translation means :QScatterSeries Classes represent data in the form of scatter diagrams
2.The scatter data is displayed as a collection of points on the chart. For each point, two values are specified that determine its position on the horizontal axis and the vertical axis
The translation means : Scatter data is displayed on the chart as a collection of points , For each point , There are two definite values to determine its position in x Axis and y Position on the shaft
Two . Use examples
1. Set display container , Drag one widget, And promote it to QChartView
2. Core code
Points of attention : You must use a namespace :QT_CHARTS_USE_NAMESPACE
void Widget::createScatterChart()
{
// Set title
ui->widge_ScatterChart->chart()->setTitle(" Scatter plot ");
// Set anti aliasing
ui->widge_ScatterChart->setRenderHint(QPainter::Antialiasing);
// Set theme style
ui->widge_ScatterChart->chart()->setTheme(QChart::ChartThemeQt);
// Set up chart Properties of
QScatterSeries *scatterSeries1=new QScatterSeries();
scatterSeries1->setName(" Icon text ");
// Set the label display attribute of scatter
scatterSeries1->setPointLabelsVisible();
scatterSeries1->setPointLabelsFormat("(@xPoint,@yPoint)");
scatterSeries1->setPointLabelsClipping(false);
scatterSeries1->setPointLabelsColor(Qt::blue);
// Set three-point attribute
scatterSeries1->setMarkerShape(QScatterSeries::MarkerShape::MarkerShapeCircle);
scatterSeries1->setMarkerSize(15);
// Add data
scatterSeries1->append(8,6);
scatterSeries1->append(1,10);
scatterSeries1->append(4,12);
scatterSeries1->append(6,5);
// Display on the screen
ui->widge_ScatterChart->chart()->addSeries(scatterSeries1);
ui->widge_ScatterChart->chart()->createDefaultAxes();
}
3. effect 
边栏推荐
- [leetcode] interview question 17.08 Circus tower
- Sword finger offer day 4 (Sword finger offer 03. duplicate numbers in the array, sword finger offer 53 - I. find the number I in the sorted array, and the missing numbers in sword finger offer 53 - ii
- 2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
- I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
- URL (data:image/png; Base64, ivborw0k... Use case
- D24:divisor and multiple (divisor and multiple, translation + solution)
- Fluent learning (4) listview
- 2022 t elevator repair registration examination and the latest analysis of T elevator repair
- Detailed explanation of the relationship between Zhongtai, wechat and DDD
- Correlation analysis summary
猜你喜欢

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

Cgb2201 preparatory class evening self-study and lecture content

Private project practice sharing populate joint query in mongoose makes the template unable to render - solve the error message: syntaxerror: unexpected token r in JSON at

Test the influence of influent swacth on the electromagnetic coil of quartz meter
![[MySQL] classification of multi table queries](/img/96/2e51ae8d52ea8184945e0540ce18f5.jpg)
[MySQL] classification of multi table queries

Briefly understand the operation mode of developing NFT platform

2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) simulated examination and Guangdong Provincial Safety Officer a certificate third batch (main person in charg

Recommendation of knowledge base management system
![[about text classification trick] things you don't know](/img/c0/fdb04f6b31f1dba2658c2430dc4036.jpg)
[about text classification trick] things you don't know

Pytorch learning notes 5: model creation
随机推荐
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Idea a method for starting multiple instances of a service
Advanced C language - pointer 2 - knowledge points sorting
Suggestions for improving code quality
[PHP basics] session basic knowledge, application case code and attack and defense
How to make recv have a little temper?
Collation of the most complete Chinese naturallanguageprocessing data sets, platforms and tools
NLP pre training technology development
Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
EPF: a fuzzy testing framework for network protocols based on evolution, protocol awareness and coverage guidance
leetcode-43. String multiplication
Idea integrates Microsoft TFs plug-in
ITK learning notes (VII) the position of ITK rotation direction remains unchanged
网上的低佣金链接安全吗?招商证券怎么开户?
The interviewer's biggest lie to deceive you, bypassing three years of less struggle
The upload experience version of uniapp wechat applet enters the blank page for the first time, and the page data can be seen only after it is refreshed again
Distributed transaction -- middleware of TCC -- selection / comparison
Cgb2201 preparatory class evening self-study and lecture content
Kubedl hostnetwork: accelerating the efficiency of distributed training communication