Data drawing method and device, electronic equipment and storage medium

By obtaining and comparing the dimensions and units of the longitudinal axis of data and combining the longitudinal axis, the problem of shrinking the display area caused by too many longitudinal axis when multiple curves share the axis is solved, and the effect of data display is improved.

CN119205977APending Publication Date: 2024-12-27CHENGDU GONGDING TECHNOLOGY CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411335127.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In data processing and analysis, when multiple curves share one coordinate axis, the increase in the number of longitudinal coordinate axis leads to a smaller curve display area, affecting the display effect.

Method used

By obtaining the dimensions and units of the longitudinal axis of the data to be drawn, and combining the longitudinal axis in the drawing area based on the dimensions and units of the longitudinal axis of the curve, reducing the space occupied by the longitudinal axis.

Benefits of technology

It realizes that while maintaining data accuracy, the longitudinal coordinate axes are merged, which reduces the space occupied and improves the effectiveness of the curve display area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205977A_ABST
    Figure CN119205977A_ABST
Patent Text Reader

Abstract

The invention provides a data drawing method and device, electronic equipment and a storage medium, and the data drawing method comprises the steps: obtaining to-be-drawn data, and determining the dimension and / or unit of a first longitudinal coordinate axis corresponding to the to-be-drawn data; determining whether a curve exists in the drawing area or not; if at least one curve exists in the drawing area, the dimension and / or unit of a second longitudinal coordinate axis corresponding to each curve are / is determined, and the unit of a transverse coordinate axis corresponding to the to-be-drawn data is the same as the unit of a transverse coordinate axis corresponding to each curve; and based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve, drawing a target curve corresponding to the to-be-drawn data in the drawing area. According to the technical scheme, the purpose of combining the longitudinal coordinate axes can be achieved, and the space, occupied by the longitudinal coordinate axes, of the drawing area is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data drawing method and device, an electronic device and a storage medium. Background Art

[0002] When processing and analyzing data, multiple sets of data are usually plotted in one graph (or canvas) for comparison. At this time, multiple sets of data share one coordinate axis. For curves of different types, for example, the horizontal coordinates of force-time curves and displacement-time curves are all time, and the vertical coordinates are force and displacement, respectively. For curves of the same type, for example, force-time curves of different objects, the horizontal coordinates are all time, and the vertical coordinates are all force. If multiple curves are plotted in one graph (or canvas), multiple curves have the same horizontal coordinate axis, and different curves have different vertical coordinate axes. If there are too many curves, the number of vertical coordinate axes will also increase. At this time, the vertical coordinate axis will occupy more canvas space, resulting in a reduction in the curve display area, affecting the display effect. Summary of the invention

[0003] In order to solve the above problems, the present application provides a data drawing method and device, an electronic device and a storage medium.

[0004] In a first aspect, an embodiment of the present application provides a data drawing method, comprising: obtaining data to be drawn, and determining the dimension and / or unit of a first longitudinal coordinate axis corresponding to the data to be drawn; determining whether there is a curve in a drawing area; if there is at least one curve in the drawing area, determining the dimension and / or unit of a second longitudinal coordinate axis corresponding to each curve, wherein the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each curve; based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve, drawing a target curve corresponding to the data to be drawn in the drawing area.

[0005] In combination with the first aspect, based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve, a target curve corresponding to the data to be drawn is drawn in the drawing area, including: if the dimension of the first longitudinal coordinate axis is different from the dimension of the second longitudinal coordinate axis corresponding to each curve, the target curve is drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn; if the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis corresponding to any curve, based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis, the target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis.

[0006] In combination with the first aspect, based on the units of the first longitudinal coordinate axis and the units of the second longitudinal coordinate axis, a target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis, including: if the units of the first longitudinal coordinate axis are the same as the units of the second longitudinal coordinate axis, according to the data to be drawn, the target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis; if the units of the first longitudinal coordinate axis are different from the units of the second longitudinal coordinate axis, based on the units of the first longitudinal coordinate axis and the units of the second longitudinal coordinate axis, the data to be drawn is converted so that the units of the longitudinal coordinate axis of the converted data to be drawn are the same as the units of the second longitudinal coordinate axis; according to the converted data to be drawn, the target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis.

[0007] In combination with the first aspect, before or after drawing the target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the units of the first longitudinal coordinate axis and the units of the second longitudinal coordinate axis, it also includes: if the first longitudinal coordinate axis exists in the drawing area, deleting the first longitudinal coordinate axis in the drawing area.

[0008] In combination with the first aspect, before the step of drawing the target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn, the method also includes: if the first longitudinal coordinate axis does not exist in the drawing area, displaying the first longitudinal coordinate axis in the drawing area.

[0009] In combination with the first aspect, the method further includes: if no curve exists in the drawing area, drawing a target curve in a coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn.

[0010] In combination with the first aspect, before drawing the target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn, it also includes: if the first longitudinal coordinate axis does not exist in the drawing area, displaying the first longitudinal coordinate axis in the drawing area.

[0011] In a second aspect, an embodiment of the present application provides a data drawing device, comprising: an acquisition module, a determination module and a drawing module; the acquisition module is used to acquire the data to be drawn, and determine the dimension and / or unit of the first longitudinal coordinate axis corresponding to the data to be drawn; the determination module is used to determine whether there is a curve in the drawing area; the determination module is also used to determine the dimension and / or unit of the second longitudinal coordinate axis corresponding to each curve if there is at least one curve in the drawing area, wherein the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each curve; the drawing module is used to draw a target curve corresponding to the data to be drawn in the drawing area based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory, the memory being connected to the processor, the memory being used to store a computer program, and the computer program implementing the above-mentioned data drawing method when executed by the processor.

[0013] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned data drawing method is implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, including computer program instructions, which implement the above-mentioned data drawing method when executed by a processor.

[0015] Through the above technical solution, before drawing the target curve, it is first determined whether the dimension of the first vertical coordinate axis corresponding to the data to be drawn is the same as the dimension of the second vertical coordinate axis of the curve in the drawing area. If they are the same, the target curve is drawn in the coordinate system corresponding to the second vertical coordinate axis and the horizontal coordinate axis, so as to achieve the purpose of merging the vertical coordinate axes, thereby reducing the space of the drawing area occupied by the vertical coordinate axes. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of a multi-axis curve diagram in the prior art.

[0017] Figure 2 It is a flowchart of a data drawing method provided in an embodiment of the present application.

[0018] Figure 3 It is a flowchart of a method for drawing a target curve provided in an embodiment of the present application.

[0019] Figure 4 It is a schematic diagram of a data drawing method provided in yet another embodiment of the present application.

[0020] Figure 5 It is a structural block diagram of a data drawing device provided in one embodiment of the present application.

[0021] Figure 6 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] Figure 1 It is a schematic diagram of a multi-axis curve graph in the prior art, that is, multiple curves are drawn in one graph. Figure 1 As shown in the figure, the figure includes three curves of the same type, namely Fx, Fy, and Fz. The units of the horizontal coordinate axes of the three curves are all seconds (s), and the units of the vertical coordinate axes are all Newtons (N). The three curves have three vertical coordinate axes, which occupy a larger canvas area in the figure, making the curve display area smaller. If the curve data increases, more canvas areas need to be allocated to draw the vertical coordinate axes, further reducing the curve display area.

[0024] In view of the above technical problems, an embodiment of the present application provides a data drawing method, which includes: obtaining the data to be drawn, and determining the dimension and / or unit of the first longitudinal coordinate axis corresponding to the data to be drawn; determining whether there is a curve in the drawing area; if there is at least one curve in the drawing area, determining the dimension and / or unit of the second longitudinal coordinate axis corresponding to each curve, wherein the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each curve; based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve, drawing the target curve corresponding to the data to be drawn in the drawing area. In an embodiment of the present application, before drawing the target curve, first determine whether the dimension of the first longitudinal coordinate axis corresponding to the data to be drawn is the same as the dimension of the second longitudinal coordinate axis of the curve in the drawing area. If they are the same, draw the target curve based on the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis, so as to achieve the purpose of merging the longitudinal coordinate axes, thereby reducing the space of the drawing area occupied by the longitudinal coordinate axes.

[0025] Figure 2 FIG. 1 is a flow chart of a data drawing method provided by an embodiment of the present application. Figure 2 As shown, the method includes the following steps.

[0026] Step S210 , obtaining data to be drawn, and determining the dimension and / or unit of a first longitudinal coordinate axis corresponding to the data to be drawn.

[0027] In the embodiment of the present application, the data to be drawn is a set of data that changes with a certain variable rule, for example, the data to be drawn is a set of force data that changes with time, or a set of voltage data that changes with current. Optionally, the data to be drawn may include experimental data or simulation data.

[0028] In the embodiment of the present application, the data to be drawn is imported into QCustomPlot for display. QCustomPlot is a Qt-based drawing control that allows developers to embed high-quality two-dimensional images or charts in Qt applications. Optionally, if the data to be drawn is experimental data, and the experimental data is stored in Excel format, the data to be drawn in Excel format can be directly imported into QCustomPlot; if the data to be drawn is simulation data, QCustomPlot can directly read the format of the simulation data and import the data to be drawn into QCustomPlot.

[0029] It can be understood that the dimension describes the nature and category of the physical quantity, and the unit is used to measure the specific value of the physical quantity. For example, the dimension of speed is length / time, and the unit of speed can be m / s, cm / s, m / h, etc. That is, for the same physical quantity, there is only one dimension, and there may be multiple units. When drawing a curve, the independent variable is usually used as the horizontal coordinate axis (ie, the X-axis) and the dependent variable is used as the vertical coordinate axis (ie, the Y-axis). If the drawn data is a force-time curve, the dimension of the horizontal coordinate axis is time, and the unit can be s, min, h, etc.; the unit of the vertical coordinate axis is force, and the unit can be N, KN, etc. After obtaining the data to be drawn, determine the dimension and / or unit of the first vertical coordinate axis corresponding to the data to be drawn.

[0030] Step S220, determining whether there is a curve in the drawing area.

[0031] Optionally, if there is no curve in the drawing area, step S250 is executed. In step S250, the target curve is drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn. In some embodiments, after the data to be drawn is obtained, the first longitudinal coordinate axis is directly displayed in the drawing area. In this case, the target curve is directly drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis. In some embodiments, after the data to be drawn is obtained, the first longitudinal coordinate axis is not displayed in the drawing area. In this case, if there is no first longitudinal coordinate axis in the drawing area, the first longitudinal coordinate axis is first displayed in the drawing area, and then the target curve is drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis.

[0032] Optionally, if there is at least one curve in the drawing area, step S230 is performed. In step S230, the dimension and / or unit of the second longitudinal coordinate axis corresponding to each curve is determined. In the embodiment of the present application, the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each curve. In this case, multiple curves can be drawn in one figure to perform data analysis and comparison.

[0033] Step S240 , drawing a target curve corresponding to the data to be drawn in the drawing area based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve.

[0034] In an embodiment of the present application, if the dimension of the first longitudinal coordinate axis is different from the dimension of the second longitudinal coordinate axis corresponding to each curve, the target curve is drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn. If the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis corresponding to any curve, the target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis. Optionally, before or after the step of drawing the target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis, the method further includes: if the first longitudinal coordinate axis exists in the drawing area, deleting the first longitudinal coordinate axis in the drawing area. For more description on drawing the target curve, please refer to the present application. Figure 3 , I will not go into details here.

[0035] In an embodiment of the present application, before drawing the target curve, it is first determined whether the dimension of the first vertical coordinate axis corresponding to the data to be drawn is the same as the dimension of the second vertical coordinate axis of the curve in the drawing area. If they are the same, the target curve is drawn in the coordinate system corresponding to the second vertical coordinate axis and the horizontal coordinate axis, so as to achieve the purpose of merging the vertical coordinate axes, thereby reducing the space occupied by the vertical coordinate axes in the drawing area.

[0036] Figure 3 It is a flow chart of a method for drawing a target curve provided by an embodiment of the present application. It can be understood that, Figure 3 It is a specific implementation method of drawing a target curve corresponding to the data to be drawn in the drawing area based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve. Figure 3 As shown, the specific implementation method includes the following steps.

[0037] Step S310, determining whether the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis corresponding to the curve.

[0038] If the dimension of the first longitudinal coordinate axis is different from the dimension of the second longitudinal coordinate axis corresponding to each curve, step S320 is executed. In step S320, the target curve is drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn. In the embodiment of the present application, if the first longitudinal coordinate axis does not exist in the drawing area (that is, the first longitudinal coordinate axis is not displayed in the drawing area), first, the first longitudinal coordinate axis is displayed in the drawing area, and then the target curve is drawn in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis.

[0039] Optionally, if the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis corresponding to any curve, step S330 is executed. In step S330, it is determined whether the unit of the first longitudinal coordinate axis is the same as the unit of the second longitudinal coordinate axis corresponding to the curve. If the unit of the first longitudinal coordinate axis is the same as the unit of the second longitudinal coordinate axis corresponding to the curve, step S340 is executed. In step S340, the target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn.

[0040] Optionally, if the unit of the first longitudinal coordinate axis is different from the unit of the second longitudinal coordinate axis corresponding to the curve, step S350 is performed. In step S350, based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis, the data to be drawn is converted so that the unit of the longitudinal coordinate axis of the converted data to be drawn is the same as the unit of the second longitudinal coordinate axis. Since the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis, the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis can be converted, so that the data to be drawn can be converted. For example, if the unit of the first longitudinal coordinate axis is m and the unit of the second longitudinal coordinate axis is cm, the data to be drawn can be converted into data with cm as the unit. Specifically, the data to be drawn are all multiplied by 100. For another example, if the unit of the first longitudinal coordinate axis is N and the unit of the second longitudinal coordinate axis is kN, the data to be drawn can be converted into data with kN as the unit. Specifically, the data to be drawn are all divided by 1000.

[0041] In some embodiments, after obtaining the data to be drawn, the first longitudinal coordinate axis may be displayed in the drawing area. Optionally, before or after step S350, if the first longitudinal coordinate axis exists in the drawing area, the first longitudinal coordinate axis is deleted in the drawing area, thereby achieving the purpose of merging the longitudinal coordinate axes.

[0042] Step S360: Draw a target curve in a coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis according to the converted data to be drawn.

[0043] In an embodiment of the present application, the method can not only realize the merging of longitudinal coordinate axes of the same unit, but also realize the merging of longitudinal coordinate axes of the same dimension but different units. At this time, it is necessary to convert the data to be drawn and then merge the longitudinal coordinate axes.

[0044] Figure 4 is a schematic diagram of a data drawing method provided by another embodiment of the present application. This method describes a specific implementation method of drawing a target curve on QCustomPlot. Figure 4 As shown, the method includes: click to import a curve; select a curve data file (i.e., data to be drawn); determine whether the file path is valid; if the file path is invalid, end directly; if the file path is valid, read the file (i.e., data to be drawn); determine whether the data in the file is not empty; if the data in the file is empty, end directly; if the data in the file is not empty, determine whether there is a curve in the drawing area; if there is no curve in the drawing area, directly draw the target curve in the drawing area; if there is a curve in the drawing area, read the y-axis (i.e., the first longitudinal coordinate axis) of the data to be drawn; traverse the existing curve data and compare the dimensions and units of the y-axis (i.e., the first longitudinal coordinate axis) of the data to be drawn and the y-axis (i.e., the second longitudinal coordinate axis) of the existing curve data; determine whether the dimensions are consistent; if the dimensions are inconsistent, directly draw the target curve in the drawing area; if the dimensions are consistent, delete the y-axis of the data to be drawn; further determine whether unit conversion is required? If no unit conversion is required, draw the target curve in the drawing area; if unit conversion is required, perform unit conversion on the data to be drawn; and then draw the target curve in the drawing area.

[0045] Figure 4 Only one specific application of the present application scheme is described. It can be understood that those skilled in the art can understand the present application scheme and can Figure 4 For example, when importing curve data, if the y-axis of the data to be plotted is not displayed, you can omit the step of deleting the y-axis.

[0046] Figure 5 is a structural block diagram of a data drawing device provided by an embodiment of the present application. Figure 5 As shown, the data drawing device 500 includes an acquisition module 510 , a determination module 520 and a drawing module 530 .

[0047] The acquisition module 510 is used to acquire the data to be drawn, and determine the dimension and / or unit of the first longitudinal coordinate axis corresponding to the data to be drawn.

[0048] The determination module 520 is used to determine whether there is a curve in the drawing area.

[0049] The determination module 520 is also used to determine the dimension and / or unit of the second longitudinal coordinate axis corresponding to each curve if there is at least one curve in the drawing area, wherein the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each curve.

[0050] The drawing module 530 is used to draw a target curve corresponding to the data to be drawn in the drawing area based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve.

[0051] Optionally, the drawing module 530 is also used to draw a target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn if the dimension of the first longitudinal coordinate axis is different from the dimension of the second longitudinal coordinate axis corresponding to each curve; if the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis corresponding to any curve, draw the target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis.

[0052] Optionally, the drawing module 530 is also used to draw a target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn if the unit of the first longitudinal coordinate axis is the same as the unit of the second longitudinal coordinate axis; if the unit of the first longitudinal coordinate axis is different from the unit of the second longitudinal coordinate axis, convert the data to be drawn based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis so that the unit of the longitudinal coordinate axis of the converted data to be drawn is the same as the unit of the second longitudinal coordinate axis; and draw the target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis according to the converted data to be drawn.

[0053] Optionally, before or after the step of drawing the target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis, the drawing module 530 is further configured to delete the first longitudinal coordinate axis in the drawing area if there is a first longitudinal coordinate axis in the drawing area.

[0054] Optionally, before the step of drawing the target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis, the drawing module 530 is further configured to display the first longitudinal coordinate axis in the drawing area if the first longitudinal coordinate axis does not exist in the drawing area.

[0055] Optionally, the drawing module 530 is further configured to draw a target curve in a coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn if no curve exists in the drawing area.

[0056] The specific working principle and benefits of the data drawing device provided in the embodiment of the present application are similar to the specific working principle and benefits of the data drawing method provided in the embodiment of the present application, and will not be repeated here.

[0057] Below, reference Figure 6 To describe an electronic device according to an embodiment of the present application. Figure 6 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application.

[0058] like Figure 6 As shown, the electronic device 600 includes one or more processors 601 and a memory 602 .

[0059] The processor 601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.

[0060] The memory 602 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 601 may run the program instructions to implement the data drawing method of each embodiment of the present application above and / or other desired functions. Various contents such as data to be drawn, a first longitudinal coordinate axis, and a second longitudinal coordinate axis may also be stored in the computer-readable storage medium.

[0061] In one example, the electronic device 600 may further include: an input device 603 and an output device 604 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0062] The input device 603 may include, for example, a keyboard, a mouse, etc.

[0063] The output device 604 can output various information to the outside, including target curves, etc. The output device 604 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0064] Of course, to simplify, Figure 6 Only some of the components related to the present application in the electronic device 600 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 600 may also include any other appropriate components.

[0065] In addition to the above methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps in the data drawing method according to various embodiments of the present application described above in this specification.

[0066] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0067] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the data drawing method according to various embodiments of the present application described above in this specification.

[0068] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0069] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0070] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0071] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0072] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0073] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A data drawing method, characterized in that: include: Acquire data to be drawn, and determine the dimension and / or unit of a first longitudinal coordinate axis corresponding to the data to be drawn; Determine if there is a curve in the drawing area; If there is at least one curve in the drawing area, determine the dimension and / or unit of the second longitudinal coordinate axis corresponding to each of the curves, wherein the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each of the curves; Based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve, a target curve corresponding to the data to be drawn is drawn in the drawing area.

2. The data drawing method according to claim 1, characterized in that: Drawing the target curve corresponding to the data to be drawn in the drawing area based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve includes: If the dimension of the first longitudinal coordinate axis is different from the dimension of the second longitudinal coordinate axis corresponding to each of the curves, drawing the target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn; If the dimension of the first longitudinal coordinate axis is the same as the dimension of the second longitudinal coordinate axis corresponding to any of the curves, the target curve is drawn in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis.

3. The data drawing method according to claim 2, characterized in that: Drawing the target curve in a coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis includes: If the unit of the first longitudinal coordinate axis is the same as the unit of the second longitudinal coordinate axis, drawing the target curve in the coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn; If the unit of the first longitudinal coordinate axis is different from the unit of the second longitudinal coordinate axis, converting the data to be drawn based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis so that the unit of the longitudinal coordinate axis of the data to be drawn after conversion is the same as the unit of the second longitudinal coordinate axis; According to the converted data to be drawn, the target curve is drawn in a coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis.

4. The data drawing method according to claim 2, characterized in that: Before or after the step of drawing the target curve in a coordinate system corresponding to the second longitudinal coordinate axis and the transverse coordinate axis based on the unit of the first longitudinal coordinate axis and the unit of the second longitudinal coordinate axis, the data drawing method further includes: If the first longitudinal coordinate axis exists in the drawing area, the first longitudinal coordinate axis is deleted in the drawing area.

5. The data drawing method according to claim 2, characterized in that: Before drawing the target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn, the method further includes: If the first longitudinal coordinate axis does not exist in the drawing area, the first longitudinal coordinate axis is displayed in the drawing area.

6. The data drawing method according to claim 1, characterized in that: Also includes: If there is no curve in the drawing area, the target curve is drawn in a coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn.

7. The data drawing method according to claim 6, characterized in that: Before drawing the target curve in the coordinate system corresponding to the first longitudinal coordinate axis and the transverse coordinate axis according to the data to be drawn, the method further includes: If the first longitudinal coordinate axis does not exist in the drawing area, the first longitudinal coordinate axis is displayed in the drawing area.

8. A data drawing device, characterized in that: include: An acquisition module, used for acquiring data to be drawn, and determining the dimension and / or unit of a first longitudinal coordinate axis corresponding to the data to be drawn; A determination module, used for determining whether there is a curve in the drawing area; The determination module is further configured to, if there is at least one curve in the drawing area, determine the dimension and / or unit of the second longitudinal coordinate axis corresponding to each of the curves, wherein the unit of the transverse coordinate axis corresponding to the data to be drawn is the same as the unit of the transverse coordinate axis corresponding to each of the curves; A drawing module is used to draw a target curve corresponding to the data to be drawn in the drawing area based on the dimension and / or unit of the first longitudinal coordinate axis and the dimension and / or unit of the second longitudinal coordinate axis corresponding to the curve.

9. An electronic device, characterized in that: include: processor; A memory, the memory is connected to the processor, the memory is used to store a computer program, and when the computer program is executed by the processor, the data drawing method according to any one of claims 1 to 7 is implemented.

10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the data drawing method according to any one of claims 1 to 7 is implemented.