A data display method and an electronic device
By determining the first area in the data set scattered point diagram and performing fisheye distortion transformation, a second area with different display statuses is formed, which solves the problem that users find it difficult to view specific data point information, and realizes efficient display and rapid judgment of the clustering/classification of the data set.
Patent Information
- Application Number
- CN202111164354.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2041-09-30
AI Technical Summary
When the prior art displays scatter plots of massive data sets, it is difficult for users to view specific data point information, and the device display is inefficient, which is prone to paralysis due to excessive load.
By determining the first area in the data set scattered point map and performing fisheye distortion transformation to form a second area with different display states, the display position of each data point is determined, and the corresponding data map is obtained and displayed.
Clearly display the data point information in the second area to avoid excessive system load downtime, help users better observe the clustering and classification of data sets, and quickly judge the clustering/classification quality of data.
Smart Images

Figure CN113920006B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technology, and in particular, to a data display method and an electronic device. Background Art
[0002] Currently, when visualizing a data set with a large amount of data, a scatter plot of the data set is mainly used. This display method can visualize the classification of the data set, the features and distances between various types of data, etc. However, users cannot view the specific information of each data point based on this scatter plot of the data set. Therefore, when users have objections to the classification results of certain data, it is difficult to detect and locate the problematic data points. If all the data is directly displayed, the device will have data superposition due to cramped display space and small distances between data, making it impossible to view clearly; moreover, when the amount of data is too large, the display efficiency and performance of the electronic device will be greatly reduced, and it may even crash directly. Summary of the Invention
[0003] The present application provides a data display method capable of displaying specific data graphs of at least some data points in a scatter plot of a data set, and an electronic device applying the data display method.
[0004] To solve the above technical problems, embodiments of the present application provide a data display method, including:
[0005] Determine a first area in the scatter plot of the data set;
[0006] Perform a fisheye distortion transformation on the first area to form a second area, and the display state of the second area is different from that of the first area;
[0007] Determine the display position of each data point in the second area;
[0008] Obtain the data graph of each data point in the second area;
[0009] Display the corresponding data graph based on the display position of each data point.
[0010] As an optional embodiment, the determining a first area in the scatter plot of the data set includes:
[0011] Respond to an instruction, and determine the first area based on the position of an indication icon in the scatter plot of the data set, where the indication icon is controlled by the user to move through an input device.
[0012] As an optional embodiment, the determining the first area based on the position of the indication icon in the scatter plot of the data set includes:
[0013] Obtain a distortion radius;
[0014] Taking the current position of the indicated icon as the center point, and determining the first region based on the center point and the distortion radius.
[0015] As an alternative embodiment, the performing a fisheye distortion transformation on the first region to form a second region includes:
[0016] Obtaining a fisheye distortion degree;
[0017] Performing a fisheye distortion transformation on the first region based on the fisheye distortion degree to form the second region.
[0018] As an alternative embodiment, the determining the display position of each data point in the second region includes:
[0019] Calculating and determining the display position of each data point in the second region based on the current position of the indicated icon, where the display position of each data point is determined by the distance between each data point and the current position of the indicated icon.
[0020] As an alternative embodiment, the calculating and determining the display position of each data point in the second region based on the current position of the indicated icon includes:
[0021] Determining the distance value between each data point and the current position of the indicated icon;
[0022] Determining the minimum distance value based on the distance corresponding to each data point;
[0023] Determining that the display position of the data point corresponding to the minimum distance value is located in the central region of the second region, and arranging the display positions of the remaining data points in sequence along the direction away from the central region according to the rule of decreasing distance values.
[0024] As an alternative embodiment, it further includes:
[0025] Calculating a distortion degree based on the display position of each data point, and discretely displaying multiple data points in the second region based on the corresponding distortion degree.
[0026] As an alternative embodiment, the displaying the corresponding data graph based on the display position of each data point includes:
[0027] Processing the data graph of each data point based on the distortion degree corresponding to each data point;
[0028] Displaying the processed data graph based on the display position of the corresponding data point, where the display size of the data graph at the display position located in the central region of the second region is the largest, and the display sizes of the data graphs at the remaining display positions decrease in sequence along the direction away from the central region.
[0029] As an alternative embodiment, it further includes:
[0030] Determine the first region by means of one or more of scaling, panning, and navigation of the scatter plot of the data set.
[0031] Another embodiment of the present application provides an electronic device, including:
[0032] A processor, configured to determine a first region in a scatter plot of a data set, perform a fisheye distortion transformation on the first region to form a second region, where the display state of the second region is different from that of the first region, determine the display position of each data point in the second region, obtain the data graph of each data point in the second region, and display the corresponding data graph based on the display position of each data point.
[0033] Based on the disclosure of the above embodiments, it can be known that the beneficial effects of the embodiments of the present application include determining a first region in the scatter plot of the data set, performing a fisheye distortion transformation on the first region to form a second region whose display state is different from that of the first region, then determining the display position of each data point in the second region, obtaining the data graph of each data point in the second region, and finally displaying the corresponding data graph based on the display position of each data point. In this way, not only can the data graphs of each data point in the second region be clearly displayed for the user, but also the system will not crash due to excessive load. At the same time, since the data graphs of each data point in the second region can be displayed, it can assist the user in better observing the overall clustering / classification situation of the data set, the feature distances between different types of data, the feature distances between data within the same class, etc., and can assist the user in quickly judging the clustering / classification of the data and the advantages and disadvantages of the dimensionality reduction algorithm, and quickly detecting and locating incorrect clustering / classification data. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Is the scatter plot of the data set in the prior art.
[0035] Figure 2 Is the flowchart of the data display method in the embodiment of the present invention.
[0036] Figure 3 Is the actual application flowchart of the data display method in the embodiment of the present invention.
[0037] Figure 4 Is the actual application flowchart of the data display method in another embodiment of the present invention.
[0038] Figure 5 Is the display diagram when the data display method in the embodiment of the present invention is actually applied.
[0039] Figure 6Another display diagram for the data display method in the embodiments of the present invention during actual application.
[0040] Figure 7 Another display diagram for the data display method in the embodiments of the present invention during actual application.
[0041] Figure 8 Block diagram of the electronic device in the embodiments of the present invention. Detailed implementation manners
[0042] Next, specific embodiments of the present application will be described in detail with reference to the accompanying drawings, but this is not a limitation to the present application.
[0043] It should be understood that various modifications can be made to the embodiments disclosed herein. Therefore, the following description should not be regarded as a limitation, but only as an example of the embodiments. Those skilled in the art will think of other modifications within the scope and spirit of the present disclosure.
[0044] The accompanying drawings included in the specification and constituting a part of the specification illustrate the embodiments of the present disclosure, and together with the general description of the present disclosure given above and the detailed description of the embodiments given below, are used to explain the principles of the present disclosure.
[0045] These and other features of the present application will become apparent from the following description of the preferred forms of the embodiments given by way of non-limiting examples with reference to the accompanying drawings.
[0046] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art can surely implement many other equivalent forms of the present application, which have the features as described in the claims and thus are all within the protection scope defined hereby.
[0047] When combined with the accompanying drawings, the above and other aspects, features, and advantages of the present disclosure will become more apparent in view of the following detailed description.
[0048] Hereinafter, specific embodiments of the present disclosure will be described with reference to the accompanying drawings; however, it should be understood that the disclosed embodiments are merely examples of the present disclosure and can be implemented in various ways. Well-known and / or repetitive functions and structures are not described in detail to avoid unnecessary or redundant details from obscuring the present disclosure. Therefore, the specific structural and functional details disclosed herein are not intended to be limiting, but merely as a basis for the claims and a representative basis for teaching those skilled in the art to use the present disclosure in substantially any suitable detailed structure in a variety of ways.
[0049] This specification may use phrases such as "in one embodiment", "in another embodiment", "in yet another embodiment", or "in other embodiments", all of which may refer to one or more of the same or different embodiments according to the present disclosure.
[0050] Next, embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0051] As Figure 1 and Figure 2 shown, an embodiment of the present application provides a data display method, including:
[0052] Determine a first region in the dataset scatter plot;
[0053] Perform a fisheye distortion transformation on the first region to form a second region, where the display state of the second region is different from that of the first region;
[0054] Determine the display position of each data point in the second region;
[0055] Obtain the data graph of each data point in the second region;
[0056] Display the corresponding data graph based on the display position of each data point.
[0057] For example, as Figure 1 , Figure 2 and Figure 3 shown, the data display method in this embodiment can be applied to the display of a dataset scatter plot. The dataset scatter plot can be obtained from a third party or prepared by a user using an electronic device. Specifically, features can be obtained and processed through numericalization, standardization, normalization, etc., and feature selection can be performed simultaneously. Then, methods such as Uniform Manifold Approximation and Projection (UMAP) are used to reduce the dimension of the selected features, reducing the high-dimensional features to 2D or 3D. After that, the dataset scatter plot can be directly drawn based on the dimension-reduced features, or clustering analysis, classification processing, etc. can be performed on the dimension-reduced features first, and then the dataset scatter plot can be drawn. For the drawn dataset scatter plot, the user can manipulate it for zooming and panning, as Figure 5As shown, by magnifying the scatter plot, the dispersion degree of the data is increased for clearer viewing of the data. Further, after obtaining the scatter plot of the data set, the user can select the area he hopes to view from the scatter plot of the data set as the first area, or determine the first area in the scatter plot of the data set based on the default data graph viewing option. For example, the default option is to select the first coordinate area on the scatter plot of the data set as the first area, which can be located in the central area of the scatter plot or in the edge area of the scatter plot. Moreover, after the data graph is displayed with the first coordinate area as the first area, the next second coordinate area can be selected as the first area to continue the display of the data graph until the data graph has been displayed in all areas of the scatter plot. Or it can also be to determine the first area based on the preset options pre-customized by the user. For example, the central area of the scatter plot is determined as the first area each time, or the area where the data point density meets the threshold is used as the first area, or the area where the characteristic distance between data points meets the threshold is used as the first area, or the area where the clustering / classification result meets the threshold is used as the first area, etc., which is not unique specifically. After determining the first area, the device can perform a fisheye distortion transformation on the first area to form a second area with a display state different from that of the first area. In this second area, each data point is still displayed in the form of a data point, but the display position of each data point and the display form of each data point, etc. can be different from the position and display form in the first area. After completing the area conversion, determine the display position of each data point in the second area, then obtain the specific data information corresponding to each data point in the second area, such as the data graph, and finally display the corresponding data graph at the display position of each data point.
[0058] Based on the disclosure of the above embodiments, the beneficial effects of this embodiment include determining the first area in the scatter plot of the data set, performing a fisheye distortion transformation on the first area to form a second area with a display state different from that of the first area, then determining the display position of each data point in the second area, obtaining the data graph of each data point in the second area, and finally displaying the corresponding data graph based on the display position of each data point. In this way, not only can the data graphs of each data point in the second area be clearly displayed for the user, but also the system will not crash due to excessive load. At the same time, since the data graphs of each data point in the second area can be displayed, it can assist the user to better observe the overall clustering / classification situation of the data set, the characteristic distances between various types of data, the characteristic distances between data within the class, etc., and can assist the user to quickly judge the clustering / classification of the data and the advantages and disadvantages of the dimensionality reduction algorithm, and quickly detect and locate incorrect clustering / classification data.
[0059] Further, in this embodiment, determining the first area in the scatter plot of the data set includes:
[0060] In response to an instruction, determine a first region based on the position of an indication icon in a scatter plot of a data set, where the indication icon is controlled by a user to move via an input device.
[0061] Suppose a user uses an electronic device to open a scatter plot of a data set and displays it using a display device. When the user wants to view the data plot in a certain region of the scatter plot of the data set, the user can use the input device of the electronic device, such as a mouse, a keyboard, an electronic pen, etc., to control the movement of the indication icon on the display device to determine the first region through the indication icon. For example, when the user moves the mouse to make the indication icon located in the region that the user wants to view and then stops moving, the user can click the left mouse button in this region to send an instruction to the electronic device to confirm that this region is the first region, or the user can control the indication icon to stay in this region for 1 s - 5 s, and at this time the electronic device will automatically generate a confirmation instruction. Or, as the indication icon moves on the scatter plot of the data set, the first region is determined in real time and a confirmation instruction is generated in real time, that is, when the position of the indication icon changes, the first region also changes. When the electronic device obtains the confirmation instruction, it will respond to this instruction and determine the first region based on the position of the indication icon in the scatter plot of the data set. The first region can be comprehensively determined based on the size parameters pre-set by the user in combination with the position where the indication icon is located, or based on the default size parameters in combination with the position where the indication icon is located, or can also be comprehensively determined based on the size parameters input by the current user and in combination with the position where the indication icon is located. The above size parameters can be, for example, radius and diameter parameters. The first region is a circular region with the position where the indication icon is located as the center and the above radius and diameter parameters as the radius or diameter. Of course, the size parameter can also be an area parameter, and the first region can also be a square region. The corresponding size parameters can be the side lengths of the square region, and the position where the indication icon is located can be the center of the square region, etc. In this embodiment, it is preferred that the first region is a circular region to facilitate the subsequent fisheye conversion operation.
[0062] Further, in this embodiment, when determining the first region based on the position of the indication icon in the scatter plot of the data set, it includes:
[0063] Obtain a distortion radius;
[0064] Take the current position of the indication icon as the center point and determine the first region based on the center point and the distortion radius.
[0065] Continuing to combine the above embodiment, when the user controls the indication icon to be located at a certain position on the scatter plot of the data set through the manipulation of the input device and generates a confirmation instruction, such as Figure 4As shown, the electronic device obtains a distortion radius, which can be pre-set by the user and stored in the electronic device, or can be a parameter currently input by the user, or can be a default parameter in an application program for implementing fisheye transformation. The specific obtaining method is not unique. In addition, the distortion radius can also be changed according to the user's instruction or the different positions of the current indication icon. For example, the default distortion radius is 5, and the user can increase the distortion radius to 8 by inputting an instruction indicating an increase in the distortion radius, or for different positions of the corresponding indication icon, the corresponding distortion radius is also different. For example, for different regions of the scatter plot of the data set, the set distortion radii are different. The electronic device can determine the distortion radius matching the position of the indication icon according to which region the current position of the indication icon is located in. After the electronic device obtains the distortion radius, it determines the current position of the indication icon, and takes this current position as the center point, and determines a circular area with the obtained distortion radius as the radius, and determines this circular area as the first area.
[0066] In addition, in this embodiment, when determining the first area, the following method can also be used for determination:
[0067] Assist in determining the first area based on one or more of scaling, roaming, and navigation of the scatter plot of the data set.
[0068] For example, the user can combine one or more of scaling, roaming the scatter plot of the data set, or navigating based on a certain keyword to find the area he wants to view, and input a determination instruction through the input device to make the electronic device determine the first area that meets the user's viewing requirements.
[0069] Further, after determining the first area, when performing fisheye distortion transformation on the first area to form the second area in this embodiment, it includes:
[0070] Obtain the fisheye distortion degree;
[0071] Perform fisheye distortion transformation on the first area based on the fisheye distortion degree to form the second area.
[0072] For example, after determining the first region in this embodiment, the electronic device obtains the fisheye distortion. The fisheye distortion can be set by the user in advance and stored in the electronic device, or can be a parameter currently input by the user, or can be the default parameter in the application program that implements the fisheye transformation. The specific obtaining method is not unique. In addition, the fisheye distortion can be a fixed parameter or a variable parameter. For example, it can be changed proportionally according to the distortion radius and the size of the first region, or can be changed accordingly according to the density and quantity of the data points in the current first region. For example, if there are many data points, the distortion is large; if there are few data points, the distortion is small; or if there are many data points, the distortion is small, etc. It can also be changed according to the position of the first region. For example, for different positions where the first region is located, the fisheye distortion is different, etc. Moreover, the above fisheye distortion can be the fisheye distortion corresponding to all the data points in the first region, that is, only one value of the fisheye distortion is obtained, or multiple values can be obtained, that is, multiple fisheye distortions are obtained. For example, there can be different fisheye distortions corresponding to different positions in the first region, or even the fisheye distortions corresponding to the data points at different positions in the first region. After obtaining the above fisheye distortion, the electronic device determines the first region and the data points therein. For example, it determines which data points need to be distorted and which do not, determines the boundary for the data point distortion transformation (i.e., the boundary of the first region), and then, after determining that the boundary is within the distortion radius, only distorts the data points within the boundary, while the data points outside the boundary are still displayed in their original state. That is, based on the fisheye distortion, a fisheye distortion transformation is performed on the first region of the data scatter plot. When specifically performing the distortion transformation operation, the electronic device calculates and determines the distortion degree of each data point in the first region based on the obtained fisheye distortion, and then distorts the data points in the first region based on the distortion degree of each data point, and at the same time changes the positions of each data point or the data points that need to be changed (for example, for some data points, their positions may remain unchanged after the fisheye distortion transformation, and such data points are the data points that do not need to change their positions), thereby forming a second region from the first region.
[0073] Further, when determining the display position of each data point in the second region in this embodiment, it includes:
[0074] Calculating and determining the display position of each data point in the second region based on the current position of the indication icon, and the display position of each data point is determined by the distance between each data point and the current position of the indication icon.
[0075] In this embodiment, the positions of the data points in the second region are not fixed, but can change accordingly as the indicator icon moves. However, each change does not necessarily involve the positions of all the data points in the second region changing. It can be that all the data points change, or only the positions of some of the data points change. Specifically, after the formation of the second region in this embodiment, the position of the current indicator icon is determined, and this current position is determined as the central position. Then, based on this central position, the display positions of each data point in the second region are calculated and determined. The display position of each data point is determined by the distance between each data point and the central position. For example, after the fisheye distortion transformation, the positions of the data points are arranged in a state where the farther away from the central position, the denser they are. That is, the display area at the central position is the largest and the number of data points is the least. The closer to the boundary of the second region, the denser the data points and the smaller the display area. Or, it can also be that starting from the central position, the data points are distributed in a scattered manner outward, and the distances between the display positions of the data points increase proportionally, and they can even be the same. However, it should be noted that when the central position changes, the display positions of the remaining data points also change accordingly.
[0076] Furthermore, when calculating and determining the display positions of each data point in the second region based on the current position of the indicator icon in this embodiment, it includes:
[0077] Determine the distance value between each data point and the current position of the indicator icon;
[0078] Based on the distance corresponding to each data point, determine the minimum distance value;
[0079] Determine that the display position of the data point corresponding to the minimum distance value is located in the central region of the second region, and arrange the display positions of the remaining data points in sequence along the direction away from the central region according to the rule of increasing distance values.
[0080] For example, when determining the display positions of respective data points in this embodiment, the distance values between each data point in the second region and the current position of the indication icon are first determined. Then, based on the distances corresponding to each data point, the minimum distance value is determined, that is, the data point closest to the indication icon. For example, a data point located beside the indication icon, or it could also be the data point indicated by the indication icon, that is, the indication icon is located on the data point, which is equivalent to having a distance of 0 from the indication icon. Next, it is determined that the display position of the data point closest to the indication icon is in the central region of the second region, that is, displayed in the center region of the circle. The display positions of the remaining data points are then arranged in sequence along the direction away from the central region / center region of the circle according to the rule of increasing distance values. Specifically, for the layout position, the central region can be a region in the shape of a circle or a square, etc. There are multiple data points in the central region, and correspondingly, there are also multiple data graphs displayed in this central region. The data point at the center of the central region is the data point closest to the position of the indication icon, and the display position of the data graph corresponding to this data point is at this center. For the remaining data points, they can be distributed with multiple data points at equal distances based on the distance values, or they can be arranged with multiple data points based on a distance trend inversely proportional to the distance values. For example, the smaller the distance value, the greater the distance between two adjacent data points, and it is necessary to move them to the positions of the data points farther from the central region to increase their distances from the data points in the central region to provide space for the display of the data graphs of the data points in the central region. For the remaining data points with large distance values, they gradually approach the edge region of the second region, and the distance between two adjacent data points is smaller. Or, it can also be based on the distance values for region division, such that the data points with distance values within the first threshold range are distributed in the first annular region centered on the central region. This first annular region is the annular region closest to the central region. The data points with distance values within the second threshold range are distributed in the second annular region also centered on the central region. The radius of this second annular region is greater than the radius of the first annular region. Subsequently, a third threshold range, a fourth threshold range, etc. can also be set. The data points within the third threshold range and the fourth threshold range are respectively located in the third annular region and the fourth annular region, and the radius of the fourth annular region is greater than the radius of the third annular region, and the radius of the third annular region is greater than the radius of the fourth annular region. Moreover, the number of data points in the fourth annular region can be the largest, that is, the closer to the edge region of the second region, the more data points there are in the annular region. In the direction gradually approaching the central region, the number of data points in each annular region can decrease in sequence. Of course, the number of data points can also remain unchanged, or only the number of data points in certain annular regions is more, etc. When the position of the indication icon changes, since the current positions of each data point and the indication icon change, the positions of all data points need to be recalculated, and even the first region needs to be re-determined.
[0081] Further, the method in this embodiment further includes:
[0082] Calculate the distortion degree based on the display position of each data point, and multiple data points are discretely displayed in the second area based on the corresponding distortion degrees.
[0083] For example, after determining the display position of each data point, the electronic device calculates the distortion degree corresponding to each data point based on the display position of each data point. If the previously obtained fisheye distortion degrees include the distortion degrees of each data point, this step can be ignored; otherwise, calculation is required to determine. The calculation of the distortion degree can be based on the specific display position where the data point is located or the area where the display position is located. In the second area, for different areas, the distortion degrees of the data points are different, that is, the distortion degrees of the data points located in the same area are the same, and the distortion degrees of the data points in different areas are different. The area mentioned above can be the annular area described above, or an area set by the user, or different fan-shaped areas, etc. In this embodiment, for the area closest to the central area, the distortion degree of the internal data points is the smallest; the farther the area is from the central area, the greater the distortion degree of the internal data points, that is, the distortion degree of the data points changes in a gradual trend. Of course, this rule is not unique. It can also be that for the area closest to the central area, the distortion degree of the data points in this area is the smallest; for the area farthest from the central area, the distortion degree of the data in this area is the largest, and for the areas between the two, the distortion degrees of the data points can be the same. After determining the distortion degrees of each data point, the electronic device displays each data point in a discrete form in the second area based on each distortion degree, and the display state of each data point matches the corresponding distortion degree.
[0084] Specifically, when displaying the corresponding data graph based on the display position of each data point in this embodiment, it includes:
[0085] Process the data graph of each data point based on the distortion degree corresponding to each data point;
[0086] Display the processed data graph based on the display position of the corresponding data point. Among them, the display size of the data graph at the display position located in the central area of the second area is the largest, and the display sizes of the data graphs at the remaining display positions gradually decrease in the direction away from the central area.
[0087] For example, as Figure 6 and Figure 7As shown, after the electronic device determines the display positions of each data point and the distortion degree of each data point, it will obtain the data graph corresponding to each data point, and then process the data graph of each data point based on the distortion degree of each data point. After processing the data graph, the electronic device will display the matching data graph based on the display positions of each data point in the previously determined second region. For different display positions, the display effects of each data graph are not fixed. Among them, for the display positions of each data point, the display size of the data graph located in the above-mentioned central region is the largest, and for the data points at the remaining display positions, the farther away from the central region, the smaller the display size of the data graph. Or, continuing from the previous embodiment, the display size of the data graph in the annular region closest to the central region is larger than that of the data graph in the next adjacent annular region, and so on. For the data graphs located in the same annular region, the display sizes are the same, or for the data graphs located in the same annular region, the closer to the central region, the larger the display size, and the specific display method is uncertain. As the user moves the indication icon in the second region, the data graph located in the central region can be different. The specific data can be selected by the user moving the indication icon, or the user first inputs an instruction that does not change the second region and does not require re-determining the first region, and then moves the indication icon in the second region to select the data graph to be enlarged and displayed in the central region. For example, the user moves the indication icon on the basis of Figure 6 so that the electronic device changes the data graph displayed in the central region, forming a state as shown in Figure 7 . The data graphs at other positions may be partially blocked between data graphs due to limited display space, but cannot be completely blocked. In addition, for the data graphs displayed in the central region or other display positions, the user can, for example, double-click and other operations to make the selected data graph full-screen display, or the user can also perform zoom adjustment on the selected data graph through zoom operations. Further, based on the displayed data graph, the user can perform visual analysis on the data set scatter plot, and perform clustering and classification on multiple data points based on the specific content of the displayed data graph. For example, the data graph with a person is divided into one category, or the data graph with a specified person is divided into one category, or it can also be classified according to the shooting time, download time, and upload time of the data graph, etc. Of course, in specific applications, it is not limited to the above classification operations, and other visual analysis and processing can also be performed on the data points based on the displayed data graph.
[0088] As shown in Figure 8 , another embodiment of the present application also provides an electronic device, including:
[0089] A first determination module, configured to determine a first region in the data set scatter plot;
[0090] A conversion module for performing a fisheye distortion transformation on a first region to form a second region, where the display state of the second region is different from that of the first region;
[0091] A second determination module for determining the display position of each data point in the second region;
[0092] An acquisition module for acquiring the data graph of each data point in the second region;
[0093] A display module for displaying the corresponding data graph according to the display position of each data point.
[0094] As an optional embodiment, the first determination module determines the first region in the data scatter plot, including:
[0095] Responding to an instruction, determining the first region based on the position of an indication icon in the data scatter plot, where the indication icon is controlled by the user to move through an input device.
[0096] As an optional embodiment, the first determination module determines the first region based on the position of the indication icon in the data scatter plot, including:
[0097] Obtaining a distortion radius;
[0098] Taking the current position of the indication icon as the center point, and determining the first region based on the center point and the distortion radius.
[0099] As an optional embodiment, the conversion module performs a fisheye distortion transformation on the first region to form a second region, including:
[0100] Obtaining a fisheye distortion degree;
[0101] Performing a fisheye distortion transformation on the first region based on the fisheye distortion degree to form a second region.
[0102] As an optional embodiment, determining the display position of each data point in the second region, including:
[0103] Calculating and determining the display position of each data point in the second region based on the current position of the indication icon, where the display position of each data point is determined by the distance between each data point and the current position of the indication icon.
[0104] As an optional embodiment, the conversion module calculates and determines the display position of each data point in the second region based on the current position of the indication icon, including:
[0105] Determining the distance value between each data point and the current position of the indication icon;
[0106] Determining the minimum distance value based on the distance corresponding to each data point;
[0107] Determine that the display position of the data point corresponding to the minimum distance is located in the central area of the second area, and arrange the display positions of the remaining data points in sequence along the direction away from the central area according to the rule of increasing distance values.
[0108] As an optional embodiment, it further includes:
[0109] A calculation module, configured to calculate the distortion degree according to the display position of each data point, and a plurality of data points are discretely displayed in the second area based on the corresponding distortion degree.
[0110] As an optional embodiment, the display module displays the corresponding data graph based on the display position of each data point, including:
[0111] Process the data graph of each data point based on the distortion degree corresponding to each data point;
[0112] Display the processed data graph based on the display position of the corresponding data point, wherein the display size of the data graph with the display position in the central area of the second area is the largest, and the display sizes of the data graphs at the remaining display positions decrease in sequence along the direction away from the central area.
[0113] As an optional embodiment, it further includes:
[0114] A processing module, configured to assist in determining the first area in one or more ways of scaling, panning, and navigating the scatter plot of the data set.
[0115] Furthermore, another embodiment of the present application further provides an electronic device, including:
[0116] A processor, configured to determine the first area in the scatter plot of the data set, perform a fisheye distortion transformation on the first area to form a second area, the display states of the second area and the first area are different, determine the display position of each data point in the second area, obtain the data graph of each data point in the second area, and display the corresponding data graph based on the display position of each data point.
[0117] Based on the disclosure of the above embodiments, the beneficial effects of this embodiment include that the processor determines the first region in the dataset scatter plot, performs a fisheye distortion transformation on the first region to form a second region with a display state different from that of the first region, then determines the display positions of each data point in the second region, obtains the data plots of each data point in the second region, and finally displays the corresponding data plots based on the display positions of each data point. In this way, not only can the data plots of each data point in the second region be clearly displayed for the user, but also the system will not crash due to excessive load. At the same time, since the data plots of each data point in the second region can be displayed, it can assist the user in better observing the overall clustering / classification situation of the dataset, the feature distances between various types of data, the feature distances between data within the same class, etc., and can assist the user in quickly judging the clustering / classification of data and the advantages and disadvantages of the dimensionality reduction algorithm, and quickly detecting and locating incorrect clustering / classification data.
[0118] As an alternative embodiment, wherein, the determining the first region in the dataset scatter plot includes:
[0119] Responding to an instruction, determining the first region based on the position of the indication icon in the dataset scatter plot, and the indication icon is controlled by the user to move through an input device.
[0120] As an alternative embodiment, the determining the first region based on the position of the indication icon in the dataset scatter plot includes:
[0121] Obtaining a distortion radius;
[0122] Taking the current position of the indication icon as the center point, and determining the first region based on the center point and the distortion radius.
[0123] As an alternative embodiment, the performing a fisheye distortion transformation on the first region to form a second region includes:
[0124] Obtaining a fisheye distortion degree;
[0125] Performing a fisheye distortion transformation on the first region based on the fisheye distortion degree to form the second region.
[0126] As an alternative embodiment, the determining the display positions of each data point in the second region includes:
[0127] Calculating and determining the display positions of each data point in the second region based on the current position of the indication icon, and the display position of each data point is determined by the distance between each data point and the current position of the indication icon.
[0128] As an optional embodiment, calculating and determining the display position of each data point in the second region based on the current position of the indication icon includes:
[0129] Determining the distance value between each data point and the current position of the indication icon;
[0130] Determining the minimum distance value based on the distances corresponding to each data point;
[0131] Determining that the display position of the data point corresponding to the minimum distance value is located in the central region of the second region, and arranging the display positions of the remaining data points in sequence along the direction away from the central region according to the rule of decreasing distance values.
[0132] As an optional embodiment, it further includes:
[0133] Calculating the distortion degree based on the display position of each data point, and the multiple data points are discretely displayed in the second region based on the corresponding distortion degree.
[0134] As an optional embodiment, displaying the corresponding data graph based on the display position of each data point includes:
[0135] Processing the data graph of each data point based on the distortion degree corresponding to each data point;
[0136] Displaying the processed data graph based on the display position of the corresponding data point, wherein the display size of the data graph at the display position located in the central region of the second region is the largest, and the display sizes of the data graphs at the remaining display positions decrease in sequence along the direction away from the central region.
[0137] As an optional embodiment, it further includes:
[0138] Assisting in determining the first region based on one or more of zooming, panning, and navigating the scatter plot of the data set.
[0139] An embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned processing method is implemented. It should be understood that each solution in this embodiment has the corresponding technical effects in the above-mentioned method embodiment, and will not be elaborated here.
[0140] An embodiment of the present application further provides a computer program product, the computer program product is tangibly stored on a computer-readable medium and includes computer-readable instructions, and when the computer-executable instructions are executed, at least one processor is caused to execute the processing method in the above-mentioned embodiment. It should be understood that each solution in this embodiment has the corresponding technical effects in the above-mentioned method embodiment, and will not be elaborated here.
[0141] It should be noted that the computer storage medium of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above two. The computer-readable medium can, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. And in the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program configured to be used by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, antenna, optical cable, RF, etc., or any suitable combination of the above.
[0142] It should be understood that although the present application is described according to each embodiment, not every embodiment only contains an independent technical solution. This narrative way of the specification is only for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
[0143] The above embodiments are only exemplary embodiments of the present application and are not used to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art can make various modifications or equivalent replacements to the present application within the essence and protection scope of the present application, and such modifications or equivalent replacements should also be regarded as falling within the protection scope of the present application.
Claims
1. A data display method, comprising: Determining a first region in a scatter plot of a data set; Performing a fisheye distortion transformation on the first region to form a second region, where the display state of the second region is different from that of the first region; Determining the display position of each data point in the second region; Obtaining the data graph of each data point in the second region; Displaying the corresponding data graph based on the display position of each data point; Wherein, determining the first region in the scatter plot of the data set includes: Obtaining a distortion radius, where the distortion radius directly changes according to an input instruction or according to the position of an indication icon in the scatter plot of the data set; Taking the current position of the indication icon as the center point, and determining the first region based on the center point and the distortion radius.
2. The method according to claim 1, wherein: The indication icon is controlled by the user to move through an input device.
3. The method according to claim 1, wherein, Performing the fisheye distortion transformation on the first region to form the second region includes: Obtaining a fisheye distortion degree; Performing a fisheye distortion transformation on the first region based on the fisheye distortion degree to form the second region.
4. The method according to claim 1, wherein Determining the display position of each data point in the second region includes: Calculating and determining the display position of each data point in the second region based on the current position of the indication icon, where the display position of each data point is determined by the distance between each data point and the current position of the indication icon.
5. The method according to claim 4, wherein Calculating and determining the display position of each data point in the second region based on the current position of the indication icon includes: Determining the distance value between each data point and the current position of the indication icon; Determining the minimum distance value based on the distance corresponding to each data point; Determining that the display position of the data point corresponding to the minimum distance value is located in the central region of the second region, and arranging the display positions of the remaining data points in sequence along the direction away from the central region according to the rule of increasing distance values.
6. The method according to claim 1, wherein Further comprising: Calculating a distortion degree based on the display position of each data point, and a plurality of the data points are discretely displayed in the second region based on the corresponding distortion degree.
7. The method according to claim 6, wherein, Displaying the corresponding data graph based on the display position of each data point includes: Processing the data graph of each data point based on the distortion degree corresponding to each data point; Displaying the processed data graph based on the display position of the corresponding data point, where the display size of the data graph at the display position located in the central region of the second region is the largest, and the display sizes of the data graphs at the remaining display positions decrease in sequence along the direction away from the central region.
8. The method according to claim 1, wherein, Further comprising: Aiding in determining the first region based on one or more of scaling, panning, and navigation of the scatter plot of the data set.
9. An electronic device, comprising: A processor, configured to determine a first region in a scatter plot of a data set, perform a fisheye distortion transformation on the first region to form a second region, where the display state of the second region is different from that of the first region, determine the display position of each data point in the second region, obtain a data graph of each data point in the second region, and display the corresponding data graph based on the display position of each data point; Wherein, the processor is specifically configured to: Obtain a distortion radius, where the distortion radius changes directly according to an input instruction or according to the position of an indication icon in the scatter plot of the data set; Take the current position of the indication icon as the center point, and determine the first region based on the center point and the distortion radius.
Citation Information
Patent Citations
Displaying Bar Charts With A Fish-Eye Distortion Effect
US20100214300A1