首页 \ 问答 \ 在Excel中标记的散点图上的直线散布(Straight lined scatter over marked scatter plot in Excel [closed])

在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!?

Scatter (marked and straight lined) plots


原文:https://stackoverflow.com/questions/36946639
更新时间:2023-03-14 17:03

最满意答案

如果您的自定义项源自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 redefine QQuickItem::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.

相关问答

更多
  • 几个选项: 使JLabel不透明并使其成为contentPane,给它一个合适的布局,给它一个合适的getPreferredSize()覆盖,在你的问题的上下文中是有意义的(JLabel自己的这个方法的覆盖将不适合你,因为它取决于标签上的文本和图标,而不是添加的组件)。 然后添加其他组件 - 到JLabel。 要么: 使用JPanel作为背景图像显示器 在paintComponent(...)方法覆盖中显示图像。 给它合适的布局管理器,如果需要,可以使用getPreferredSize()覆盖。 也: 请注 ...
  • 尝试用代码: 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 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。