本示例展示了如何在WinForms应用程序中使用ScottPlot 5.0创建一个带有十字光标的交互式图表。我们将绘制一个正弦波,并添加一个跟随鼠标移动的十字光标。
准备工作
首先,确保你已经安装了必要的NuGet包:
- ScottPlot (5.0.x)
2025年07月09日
本示例展示了如何在WinForms应用程序中使用ScottPlot 5.0创建一个带有十字光标的交互式图表。我们将绘制一个正弦波,并添加一个跟随鼠标移动的十字光标。
首先,确保你已经安装了必要的NuGet包:
2025年07月09日
行内元素与块级元素
首先,CSS规范规定,每个元素都有display属性,确定该元素的类型,每个元素都有默认的display值,分别为块级(block)、行内(inline)。
块级元素:(以下列举比较常用的块级元素,详情可在w3cschool查询)
<div>定义文档中的分区或节 <h1>定义最大的标题 <h2>定义副标题 <h3>定义标题 <h4>定义标题 <h5>定义标题 <h6>定义最小的标题 <ul>定义无序列表 <ol>定义有序列表 <li>定义有序列表或无序列表的列表项目 <dl>定义自定义列表 <dd>定义自定义列表中的条目 <dt>定义自定义列表中的项目 <hr>创建一条水平线 <p>定义段落 <table>定义表格 <td>表格中的标准单元格 <th>定义表头单元格 <thead>标签定义表格的表头 <tr>定义表格中的行
2025年07月09日
Panel 作为 Python 生态系统中最强大的交互式仪表盘工具之一,其学习曲线既平缓又深远。这里我将为您构建一个系统化的进阶学习框架,包含实战项目和关键学习节点。
2025年07月09日
是的,现在实现页面实时聊天主要使用Websocket,在此之前,还有其它的一些技术,比如:AJAX 轮询、Flash XMLSocket等。
其中Ajax轮询就是定时向服务器发起请求,例如1秒钟请求一次看有没有最新的数据,如果有就读取渲染到页面上来。这种方式需要消耗非常多的服务器资源,无法应用于多人聊天的场景,而且还有一定的延迟,这是由于轮询的间隔时间造成的。
2025年07月09日
文本框是表单中与用户打交道最多的元素之一,它包括单行文本框<input type="text">和多行文本框<textarea>,
更广义的还可以包括密码输入框<input type="password">。
控制用户输入字符个数
对于单行文本框<input type="text">和密码输入框<input type="password">而言,可以利用自身的maxlength属性控制用户输入字符的个数;
2025年07月09日
Started by user admin
[Wed Jun 18 07:51:27 UTC 2025] Starting branch indexing...
> git --version # timeout=10
> git --version # 'git version 2.39.5'
using GIT_SSH to set credentials
Verifying host key using known hosts file
You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' and configure host key verification.
> git ls-remote --symref -- git@192.168.0.100:/home/git/gbdf.git # timeout=10
ERROR: [Wed Jun 18 07:51:27 UTC 2025] Could not update folder level actions from source 449cdbd1-e3cc-4be6-88e9-b012cd419e98
[Wed Jun 18 07:51:27 UTC 2025] Finished branch indexing. Indexing took 0.16 sec
FATAL: Failed to recompute children of gbdf
hudson.plugins.git.GitException: Command "git ls-remote --symref -- git@192.168.0.100:/home/git/gbdf.git" returned status code 128:
stdout:
stderr: No ED25519 host key is known for 192.168.0.100 and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2852)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2188)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2084)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2075)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteSymbolicReferences(CliGitAPIImpl.java:3853)
at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:1186)
Caused: java.io.IOException
at PluginClassLoader for git//jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:1188)
at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:847)
at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:618)
at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:272)
at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:170)
at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1064)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:454)
Finished: FAILURE