在Excel中标记的散点图上的直线散布(Straight lined scatter over marked scatter plot in Excel [closed])
我正在尝试在Excel中制作一个简单的散点图。 一个变量是河流流量的现场测量。 另一个是拟合评级曲线(外部完成)。 我将场测量绘制为标记的散点图。 对于评级曲线,我创建了一个柱子,每个厘米的水位和用曲线方程计算的相应水流量。 有了这对(水位,水流),我增加了第二个系列,并从标记的散射变为直线散射图。
问题是我需要在测量图上看到评级曲线。 我改变了剧情顺序,但没有奏效。 标记的情节总是在有线的情节上。
有什么建议!?
I'm trying to make a simple scatter plot in Excel. One variable are field measures of river flow. The other one is the fitted rating curve (done externally). I draw the field measures as marked scatter plot. For the rating curve I created a column with the water level at each centimeter and the respective water flow calculated with the curve equation. With this pair (water level, water flow) I have added a second series and changed from marked scatter to straight lined scatter plot.
The problem is that I need to see the rating curve over the measures plot. I had changed the plot order but didn't work. The marked plot is always over the lined one.
Any suggestion!?
原文:https://stackoverflow.com/questions/36946639
最满意答案
如果您的自定义项源自
QQuickItem
您可以通过以下方式重新定义QQuickItem::updatePaintNode()
:QSGNode *MyItem::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *) { QSGSimpleTextureNode *node = static_cast<QSGSimpleTextureNode *>(oldNode); if (!node) { node = new QSGSimpleTextureNode(); QSGTexture *texture = window()->createTextureFromImage(m_pixmap.toImage()); node->setTexture(texture); } node->setRect(boundingRect()); return node; }
请注意:您的物品是
QSGTexture *texture
拥有者,不要忘记在对象销毁时将其删除。If your custom item derived from
QQuickItem
you can redefineQQuickItem::updatePaintNode()
in maybe this way:QSGNode *MyItem::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *) { QSGSimpleTextureNode *node = static_cast<QSGSimpleTextureNode *>(oldNode); if (!node) { node = new QSGSimpleTextureNode(); QSGTexture *texture = window()->createTextureFromImage(m_pixmap.toImage()); node->setTexture(texture); } node->setRect(boundingRect()); return node; }
Pay attention: your item is owner of
QSGTexture *texture
, don't forget to delete it while object destruction.
相关问答
更多-
TCP/IP模型是一个________。[2023-05-19]
a -
几个选项: 使JLabel不透明并使其成为contentPane,给它一个合适的布局,给它一个合适的getPreferredSize()覆盖,在你的问题的上下文中是有意义的(JLabel自己的这个方法的覆盖将不适合你,因为它取决于标签上的文本和图标,而不是添加的组件)。 然后添加其他组件 - 到JLabel。 要么: 使用JPanel作为背景图像显示器 在paintComponent(...)方法覆盖中显示图像。 给它合适的布局管理器,如果需要,可以使用getPreferredSize()覆盖。 也: 请注 ...
-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
尝试用代码: Objective-C的: theLabel.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"blah"]]; 迅速: theLabel.backgroundColor = UIColor(patternImage: UIImage(named: "blah")!) 或者将UIImageView放在标签后面(不推荐)。 更新:不推荐将UIImageView放在标签后面,因为您必须管理两个视图。 但 ...
-
我已经通过使用具有已定义的updatePaintNode函数的QQuickItem (来自Kuba Ober的评论的第一个想法)来解决这个问题。 这个例子帮助了我很多。 在它NoisyNode类呈现背景(静态图像)和Graph正在使用它。 我已经将这两个班级带到了我的项目中,并根据我的需要进行了调整。 我没有问题显示1080x1920像素,30fps。 据我所知,显示一个视频,你最终需要将YUV转换为RGB,所以我立即做了这个工作,并使用RGBA像素阵列。 I have got this to work b ...
-
你的选择: 将标签和背景图像视图包装在另一个容器视图中。 编写自己的支持背景图像的标签类。 Anyhow I solved this by inheriting UITextField and adding the subview to that. This works since there's actually a UILabel subview within this control and adding it behind it naturally solves the problem. Also, ...
-
如果和当调用updatePaintNode()时,很可能是场景图内部的东西,并不是真正想要修改的。 也许尝试做一些侵入性较小的事情: QSGNode * MyQQuickItem::updatePaintNode(QSGNode * oldNode, UpdatePaintNodeData * updatePaintNodeData) { if (doNotUpdate) return oldNode; // draw UI logic return node; } If and when ...
-
如果您的自定义项源自QQuickItem您可以通过以下方式重新定义QQuickItem::updatePaintNode() : QSGNode *MyItem::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *) { QSGSimpleTextureNode *node = static_cast
(oldNode); if (!node) { ... -
如果要添加图像(或者在闪亮的布局中自定义任何内容),有两种方法可以实现。 第一种是通过tags对象编写自己的html,它包含重现页面所需的所有函数 另一种(并且坦率地说更简单的方法)是对现有功能进行一些小修改。 在ui方面,闪亮的标签只是列表,您可以访问,添加或替换您喜欢的任何其他标签。 首先,您需要保存生成的闪亮对象 所以,而不是: ui.R library(shiny) navbarPage(title = 'test') 我们这样做: ui.R library(shiny) FullPage <- ...
-
实际上, QQuickItem提供了transform()方法,但它返回分配给给定项的所有转换的列表。 这是因为可以将多个转换分配给单个Item 。 QQuickItem::transform的返回类型是QQmlListProperty
- 它是QML list 类型的包装(参见Item的文档 )。 它可以迭代,产生QQuickTransform *元素。 QQuickTransform是转换的基类,它提供虚拟方法applyTo获取QMatrix4x4 ...