Nessuna descrizione

class_q_c_p_graph.tex 61KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. \hypertarget{class_q_c_p_graph}{}\section{Q\+C\+P\+Graph Class Reference}
  2. \label{class_q_c_p_graph}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  3. A plottable representing a graph in a plot.
  4. Inheritance diagram for Q\+C\+P\+Graph\+:\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=4.000000cm]{class_q_c_p_graph}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Public Types}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. enum \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859}{Line\+Style} \{ \\*
  14. \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aea9591b933733cc7b20786b71e60fa04}{ls\+None},
  15. \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a3c42a27b15aa3c92d399082fad8b7515}{ls\+Line},
  16. \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859ae10568bda57836487d9dec5eba1d6c6e}{ls\+Step\+Left},
  17. \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a9c37951f7d11aa070100fd16f2935c9e}{ls\+Step\+Right},
  18. \\*
  19. \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a5adf7b04da215a40a764c21294ea7366}{ls\+Step\+Center},
  20. \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aa3b358b4ae7cca94aceeb8e529c12ebb}{ls\+Impulse}
  21. \}
  22. \item
  23. enum \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}{Error\+Type} \{ \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afaeae745e7cc1766bb8546e35d4b76a711}{et\+None},
  24. \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa2a5d89cd76fb8b6b18d71b8f6f6c0f43}{et\+Key},
  25. \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa147022ccdc49f6bd48f904cb4f61872e}{et\+Value},
  26. \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa761cb7d61670c1e2efecccd8974409ab}{et\+Both}
  27. \}
  28. \end{DoxyCompactItemize}
  29. \subsection*{Public Member Functions}
  30. \begin{DoxyCompactItemize}
  31. \item
  32. \hyperlink{class_q_c_p_graph_a0393a38cf7183cbf46348eb6cf9a5a6c}{Q\+C\+P\+Graph} (\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$key\+Axis, \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis} $\ast$value\+Axis)
  33. \item
  34. \hypertarget{class_q_c_p_graph_a8f4c17d993df4759c7426db45b33fbc0}{}const \hyperlink{qcustomplot_8h_a84a9c4a4c2216ccfdcb5f3067cda76e3}{Q\+C\+P\+Data\+Map} $\ast$ {\bfseries data} () const \label{class_q_c_p_graph_a8f4c17d993df4759c7426db45b33fbc0}
  35. \item
  36. \hypertarget{class_q_c_p_graph_ad6db8d31abeac256a285fc68d6b9b9be}{}\hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859}{Line\+Style} {\bfseries line\+Style} () const \label{class_q_c_p_graph_ad6db8d31abeac256a285fc68d6b9b9be}
  37. \item
  38. \hypertarget{class_q_c_p_graph_ae0227c79f4e42a350c2c99fb2fb879db}{}\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} {\bfseries scatter\+Style} () const \label{class_q_c_p_graph_ae0227c79f4e42a350c2c99fb2fb879db}
  39. \item
  40. \hypertarget{class_q_c_p_graph_a250bcdf78abac87bc6d46ee6fd99a92d}{}\hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}{Error\+Type} {\bfseries error\+Type} () const \label{class_q_c_p_graph_a250bcdf78abac87bc6d46ee6fd99a92d}
  41. \item
  42. \hypertarget{class_q_c_p_graph_a83455e01093bb899f3b59d4a6fdcd57b}{}Q\+Pen {\bfseries error\+Pen} () const \label{class_q_c_p_graph_a83455e01093bb899f3b59d4a6fdcd57b}
  43. \item
  44. \hypertarget{class_q_c_p_graph_ae31efdcbc6ba3d73a7aeb83c774f958a}{}double {\bfseries error\+Bar\+Size} () const \label{class_q_c_p_graph_ae31efdcbc6ba3d73a7aeb83c774f958a}
  45. \item
  46. \hypertarget{class_q_c_p_graph_a04dbc050ff04561658ab1e7f3df37a01}{}bool {\bfseries error\+Bar\+Skip\+Symbol} () const \label{class_q_c_p_graph_a04dbc050ff04561658ab1e7f3df37a01}
  47. \item
  48. \hypertarget{class_q_c_p_graph_a5369f23863e04a6164f8b66d49fd18f4}{}\hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} $\ast$ {\bfseries channel\+Fill\+Graph} () const \label{class_q_c_p_graph_a5369f23863e04a6164f8b66d49fd18f4}
  49. \item
  50. void \hyperlink{class_q_c_p_graph_a1df2fd710545c8ba3b2c99a39a27bf8b}{set\+Data} (\hyperlink{qcustomplot_8h_a84a9c4a4c2216ccfdcb5f3067cda76e3}{Q\+C\+P\+Data\+Map} $\ast$data, bool copy=false)
  51. \item
  52. void \hyperlink{class_q_c_p_graph_a4c55d8ac13bfa42c8c93747820891a76}{set\+Data} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value)
  53. \item
  54. void \hyperlink{class_q_c_p_graph_abce9f07c0d722bc3e4fa7bd73c7e5dfa}{set\+Data\+Key\+Error} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value, const Q\+Vector$<$ double $>$ \&key\+Error)
  55. \item
  56. void \hyperlink{class_q_c_p_graph_ac15c749c5fedf740d5692c6fe67143b8}{set\+Data\+Key\+Error} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value, const Q\+Vector$<$ double $>$ \&key\+Error\+Minus, const Q\+Vector$<$ double $>$ \&key\+Error\+Plus)
  57. \item
  58. void \hyperlink{class_q_c_p_graph_acba6296eadcb36b93267628b8dae3de5}{set\+Data\+Value\+Error} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value, const Q\+Vector$<$ double $>$ \&value\+Error)
  59. \item
  60. void \hyperlink{class_q_c_p_graph_a3afbfd7222d739351c69387904776f93}{set\+Data\+Value\+Error} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value, const Q\+Vector$<$ double $>$ \&value\+Error\+Minus, const Q\+Vector$<$ double $>$ \&value\+Error\+Plus)
  61. \item
  62. void \hyperlink{class_q_c_p_graph_a873fe46bdb20be5710428e474ade8908}{set\+Data\+Both\+Error} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value, const Q\+Vector$<$ double $>$ \&key\+Error, const Q\+Vector$<$ double $>$ \&value\+Error)
  63. \item
  64. void \hyperlink{class_q_c_p_graph_abb75736ecdbf6e6a7501e1da64fb18cf}{set\+Data\+Both\+Error} (const Q\+Vector$<$ double $>$ \&key, const Q\+Vector$<$ double $>$ \&value, const Q\+Vector$<$ double $>$ \&key\+Error\+Minus, const Q\+Vector$<$ double $>$ \&key\+Error\+Plus, const Q\+Vector$<$ double $>$ \&value\+Error\+Minus, const Q\+Vector$<$ double $>$ \&value\+Error\+Plus)
  65. \item
  66. void \hyperlink{class_q_c_p_graph_a513fecccff5b2a50ce53f665338c60ff}{set\+Line\+Style} (\hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859}{Line\+Style} ls)
  67. \item
  68. void \hyperlink{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}{set\+Scatter\+Style} (const \hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} \&style)
  69. \item
  70. void \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type} (\hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}{Error\+Type} error\+Type)
  71. \item
  72. void \hyperlink{class_q_c_p_graph_abd4c7f81939e10776ea64603a704f22a}{set\+Error\+Pen} (const Q\+Pen \&pen)
  73. \item
  74. void \hyperlink{class_q_c_p_graph_a10f50c5495ce45ef559ec2066194a335}{set\+Error\+Bar\+Size} (double size)
  75. \item
  76. void \hyperlink{class_q_c_p_graph_ab1c1ee03d8dd94676a564e5e5f11aac2}{set\+Error\+Bar\+Skip\+Symbol} (bool enabled)
  77. \item
  78. void \hyperlink{class_q_c_p_graph_a2d03156df1b64037a2e36cfa50351ca3}{set\+Channel\+Fill\+Graph} (\hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} $\ast$target\+Graph)
  79. \item
  80. void \hyperlink{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{add\+Data} (const \hyperlink{qcustomplot_8h_a84a9c4a4c2216ccfdcb5f3067cda76e3}{Q\+C\+P\+Data\+Map} \&data\+Map)
  81. \item
  82. void \hyperlink{class_q_c_p_graph_a80cc91e1e0ef77eb50afc5b366d0efd9}{add\+Data} (const \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} \&data)
  83. \item
  84. void \hyperlink{class_q_c_p_graph_a0bf98b1972286cfb7b1c4b7dd6ae2012}{add\+Data} (double key, double value)
  85. \item
  86. void \hyperlink{class_q_c_p_graph_ab6da6377541fe80d892a9893a92db9c6}{add\+Data} (const Q\+Vector$<$ double $>$ \&keys, const Q\+Vector$<$ double $>$ \&values)
  87. \item
  88. void \hyperlink{class_q_c_p_graph_a9fe0b3e54e8c7b61319bd03337e21e99}{remove\+Data\+Before} (double key)
  89. \item
  90. void \hyperlink{class_q_c_p_graph_ae42d645ef617cfc75fc0df58e62c522a}{remove\+Data\+After} (double key)
  91. \item
  92. void \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data} (double from\+Key, double to\+Key)
  93. \item
  94. void \hyperlink{class_q_c_p_graph_a4a706020b4318f118381648ef18aca3f}{remove\+Data} (double key)
  95. \item
  96. virtual void \hyperlink{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{clear\+Data} ()
  97. \item
  98. virtual double \hyperlink{class_q_c_p_graph_abc9ff375aabcf2d21cca33d6baf85772}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
  99. \item
  100. void \hyperlink{class_q_c_p_graph_aa35b75b9032800d783df749c8a004ee9}{rescale\+Axes} (bool only\+Enlarge, bool include\+Error\+Bars) const
  101. \item
  102. void \hyperlink{class_q_c_p_graph_a2108a729046b0ab6e0516afb249dab13}{rescale\+Key\+Axis} (bool only\+Enlarge, bool include\+Error\+Bars) const
  103. \item
  104. void \hyperlink{class_q_c_p_graph_a2ba0e1df416486d7e74299ef8cf68bba}{rescale\+Value\+Axis} (bool only\+Enlarge, bool include\+Error\+Bars) const
  105. \end{DoxyCompactItemize}
  106. \subsection*{Protected Member Functions}
  107. \begin{DoxyCompactItemize}
  108. \item
  109. \hypertarget{class_q_c_p_graph_a659218cc62c2a7786213d9dd429c1c8d}{}virtual void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter)\label{class_q_c_p_graph_a659218cc62c2a7786213d9dd429c1c8d}
  110. \item
  111. \hypertarget{class_q_c_p_graph_a32115df0e940cf8ca7b687873c2d02ee}{}virtual void {\bfseries draw\+Legend\+Icon} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, const Q\+Rect\+F \&rect) const \label{class_q_c_p_graph_a32115df0e940cf8ca7b687873c2d02ee}
  112. \item
  113. \hypertarget{class_q_c_p_graph_ab39c7e8c94b64804a8dc9c19bc7d4683}{}virtual \hyperlink{class_q_c_p_range}{Q\+C\+P\+Range} {\bfseries get\+Key\+Range} (bool \&valid\+Range, \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} in\+Sign\+Domain=\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both}) const \label{class_q_c_p_graph_ab39c7e8c94b64804a8dc9c19bc7d4683}
  114. \item
  115. \hypertarget{class_q_c_p_graph_a9fc0c1288455fa5bb64b603d6b01de6c}{}virtual \hyperlink{class_q_c_p_range}{Q\+C\+P\+Range} {\bfseries get\+Value\+Range} (bool \&valid\+Range, \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} in\+Sign\+Domain=\hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60}{sd\+Both}) const \label{class_q_c_p_graph_a9fc0c1288455fa5bb64b603d6b01de6c}
  116. \item
  117. virtual \hyperlink{class_q_c_p_range}{Q\+C\+P\+Range} \hyperlink{class_q_c_p_graph_a3a69fbbaea30050a9cfe335a9a01cbf2}{get\+Key\+Range} (bool \&valid\+Range, \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} in\+Sign\+Domain, bool include\+Errors) const
  118. \item
  119. virtual \hyperlink{class_q_c_p_range}{Q\+C\+P\+Range} \hyperlink{class_q_c_p_graph_acdb1e7bb86fea2764b0adb104185832b}{get\+Value\+Range} (bool \&valid\+Range, \hyperlink{class_q_c_p_abstract_plottable_a661743478a1d3c09d28ec2711d7653d8}{Sign\+Domain} in\+Sign\+Domain, bool include\+Errors) const
  120. \item
  121. \hypertarget{class_q_c_p_graph_ad6d07926e6d6b7cfa70258780d47b7a0}{}virtual void {\bfseries draw\+Fill} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_graph_ad6d07926e6d6b7cfa70258780d47b7a0}
  122. \item
  123. \hypertarget{class_q_c_p_graph_af1872a60bed7acb3f3b17bfae3f4764c}{}virtual void {\bfseries draw\+Scatter\+Plot} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_af1872a60bed7acb3f3b17bfae3f4764c}
  124. \item
  125. \hypertarget{class_q_c_p_graph_acebc22c3385829b19a87e6281fe6ade2}{}virtual void {\bfseries draw\+Line\+Plot} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_graph_acebc22c3385829b19a87e6281fe6ade2}
  126. \item
  127. \hypertarget{class_q_c_p_graph_abc01180629621f1e47e94559227d3d8c}{}virtual void {\bfseries draw\+Impulse\+Plot} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_graph_abc01180629621f1e47e94559227d3d8c}
  128. \item
  129. \hypertarget{class_q_c_p_graph_af66183533a29520be3e74489ad1449cc}{}void {\bfseries get\+Plot\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_af66183533a29520be3e74489ad1449cc}
  130. \item
  131. \hypertarget{class_q_c_p_graph_a0899c4d6357aee19a3abff5897c3c8c5}{}void {\bfseries get\+Scatter\+Plot\+Data} (Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_a0899c4d6357aee19a3abff5897c3c8c5}
  132. \item
  133. \hypertarget{class_q_c_p_graph_ac76804eb33446181f3e4f708b7639a75}{}void {\bfseries get\+Line\+Plot\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_ac76804eb33446181f3e4f708b7639a75}
  134. \item
  135. \hypertarget{class_q_c_p_graph_a6b7c14e04deed69b70d552dbe70c4d28}{}void {\bfseries get\+Step\+Left\+Plot\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_a6b7c14e04deed69b70d552dbe70c4d28}
  136. \item
  137. \hypertarget{class_q_c_p_graph_ab2ad46716889c73ab977cf9280de0788}{}void {\bfseries get\+Step\+Right\+Plot\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_ab2ad46716889c73ab977cf9280de0788}
  138. \item
  139. \hypertarget{class_q_c_p_graph_ac79dc75dd98db9948d9656447b463af5}{}void {\bfseries get\+Step\+Center\+Plot\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_ac79dc75dd98db9948d9656447b463af5}
  140. \item
  141. \hypertarget{class_q_c_p_graph_a0ff6e856387cc079b28592ead2a81f6c}{}void {\bfseries get\+Impulse\+Plot\+Data} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data, Q\+Vector$<$ \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} $>$ $\ast$point\+Data) const \label{class_q_c_p_graph_a0ff6e856387cc079b28592ead2a81f6c}
  142. \item
  143. \hypertarget{class_q_c_p_graph_a4df6807066ce877705e999773e7ffbc4}{}void {\bfseries draw\+Error} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter, double x, double y, const \hyperlink{class_q_c_p_data}{Q\+C\+P\+Data} \&data) const \label{class_q_c_p_graph_a4df6807066ce877705e999773e7ffbc4}
  144. \item
  145. \hypertarget{class_q_c_p_graph_a8963c90087cf53b889b29dd59aa41aad}{}void {\bfseries get\+Visible\+Data\+Bounds} (Q\+C\+P\+Data\+Map\+::const\+\_\+iterator \&lower, Q\+C\+P\+Data\+Map\+::const\+\_\+iterator \&upper, int \&count) const \label{class_q_c_p_graph_a8963c90087cf53b889b29dd59aa41aad}
  146. \item
  147. \hypertarget{class_q_c_p_graph_a5fa7884620d7c54b81dfbd255d97b636}{}void {\bfseries add\+Fill\+Base\+Points} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_graph_a5fa7884620d7c54b81dfbd255d97b636}
  148. \item
  149. \hypertarget{class_q_c_p_graph_ad31b49a90e91e538fd9caf011c913a68}{}void {\bfseries remove\+Fill\+Base\+Points} (Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_graph_ad31b49a90e91e538fd9caf011c913a68}
  150. \item
  151. \hypertarget{class_q_c_p_graph_a41f982e8ceaefe6a53eb7432f26d64b6}{}Q\+Point\+F {\bfseries lower\+Fill\+Base\+Point} (double lower\+Key) const \label{class_q_c_p_graph_a41f982e8ceaefe6a53eb7432f26d64b6}
  152. \item
  153. \hypertarget{class_q_c_p_graph_a363d066c179e0f46cc93c12bafb0bfba}{}Q\+Point\+F {\bfseries upper\+Fill\+Base\+Point} (double upper\+Key) const \label{class_q_c_p_graph_a363d066c179e0f46cc93c12bafb0bfba}
  154. \item
  155. \hypertarget{class_q_c_p_graph_a0374b7268e35cab9802a6be2b5d726d7}{}const Q\+Polygon\+F {\bfseries get\+Channel\+Fill\+Polygon} (const Q\+Vector$<$ Q\+Point\+F $>$ $\ast$line\+Data) const \label{class_q_c_p_graph_a0374b7268e35cab9802a6be2b5d726d7}
  156. \item
  157. \hypertarget{class_q_c_p_graph_a6f4e9461d5925be9228fc4760249a04f}{}int {\bfseries find\+Index\+Below\+X} (const Q\+Vector$<$ Q\+Point\+F $>$ $\ast$data, double x) const \label{class_q_c_p_graph_a6f4e9461d5925be9228fc4760249a04f}
  158. \item
  159. \hypertarget{class_q_c_p_graph_abab2a75b5e63630432bdd1f3b57f07fa}{}int {\bfseries find\+Index\+Above\+X} (const Q\+Vector$<$ Q\+Point\+F $>$ $\ast$data, double x) const \label{class_q_c_p_graph_abab2a75b5e63630432bdd1f3b57f07fa}
  160. \item
  161. \hypertarget{class_q_c_p_graph_a6c4d556de3d1e02f548401001f72c6ff}{}int {\bfseries find\+Index\+Below\+Y} (const Q\+Vector$<$ Q\+Point\+F $>$ $\ast$data, double y) const \label{class_q_c_p_graph_a6c4d556de3d1e02f548401001f72c6ff}
  162. \item
  163. \hypertarget{class_q_c_p_graph_adf50243f1df203883a2187089734bfcb}{}int {\bfseries find\+Index\+Above\+Y} (const Q\+Vector$<$ Q\+Point\+F $>$ $\ast$data, double y) const \label{class_q_c_p_graph_adf50243f1df203883a2187089734bfcb}
  164. \item
  165. \hypertarget{class_q_c_p_graph_af93762a12a481a7edb4b3dd9e330dff1}{}double {\bfseries point\+Distance} (const Q\+Point\+F \&pixel\+Point) const \label{class_q_c_p_graph_af93762a12a481a7edb4b3dd9e330dff1}
  166. \end{DoxyCompactItemize}
  167. \subsection*{Protected Attributes}
  168. \begin{DoxyCompactItemize}
  169. \item
  170. \hypertarget{class_q_c_p_graph_a8457c840f69a0ac49f61d30a509c5d08}{}\hyperlink{qcustomplot_8h_a84a9c4a4c2216ccfdcb5f3067cda76e3}{Q\+C\+P\+Data\+Map} $\ast$ {\bfseries m\+Data}\label{class_q_c_p_graph_a8457c840f69a0ac49f61d30a509c5d08}
  171. \item
  172. \hypertarget{class_q_c_p_graph_aa35681a24165c2831301091a87b662ce}{}Q\+Pen {\bfseries m\+Error\+Pen}\label{class_q_c_p_graph_aa35681a24165c2831301091a87b662ce}
  173. \item
  174. \hypertarget{class_q_c_p_graph_a8604fd98402035a63375849f7341ee25}{}\hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859}{Line\+Style} {\bfseries m\+Line\+Style}\label{class_q_c_p_graph_a8604fd98402035a63375849f7341ee25}
  175. \item
  176. \hypertarget{class_q_c_p_graph_a4aa36241f166ccd1f75fc8f24e4a3247}{}\hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style} {\bfseries m\+Scatter\+Style}\label{class_q_c_p_graph_a4aa36241f166ccd1f75fc8f24e4a3247}
  177. \item
  178. \hypertarget{class_q_c_p_graph_a29e64273db201aeadebc61c870720a36}{}\hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}{Error\+Type} {\bfseries m\+Error\+Type}\label{class_q_c_p_graph_a29e64273db201aeadebc61c870720a36}
  179. \item
  180. \hypertarget{class_q_c_p_graph_a7b51c8d09510f9d195b5e765ccbcf05b}{}double {\bfseries m\+Error\+Bar\+Size}\label{class_q_c_p_graph_a7b51c8d09510f9d195b5e765ccbcf05b}
  181. \item
  182. \hypertarget{class_q_c_p_graph_acf631d7dbd1055a69ab3b63094868557}{}bool {\bfseries m\+Error\+Bar\+Skip\+Symbol}\label{class_q_c_p_graph_acf631d7dbd1055a69ab3b63094868557}
  183. \item
  184. \hypertarget{class_q_c_p_graph_a2f1777c7accf8244fc640c33f0b04577}{}Q\+Pointer$<$ \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} $>$ {\bfseries m\+Channel\+Fill\+Graph}\label{class_q_c_p_graph_a2f1777c7accf8244fc640c33f0b04577}
  185. \end{DoxyCompactItemize}
  186. \subsection*{Friends}
  187. \begin{DoxyCompactItemize}
  188. \item
  189. \hypertarget{class_q_c_p_graph_a1cdf9df76adcfae45261690aa0ca2198}{}class {\bfseries Q\+Custom\+Plot}\label{class_q_c_p_graph_a1cdf9df76adcfae45261690aa0ca2198}
  190. \item
  191. \hypertarget{class_q_c_p_graph_a8429035e7adfbd7f05805a6530ad5e3b}{}class {\bfseries Q\+C\+P\+Legend}\label{class_q_c_p_graph_a8429035e7adfbd7f05805a6530ad5e3b}
  192. \end{DoxyCompactItemize}
  193. \subsection*{Additional Inherited Members}
  194. \subsection{Detailed Description}
  195. A plottable representing a graph in a plot.
  196. Usually \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} creates graphs internally via \hyperlink{class_q_custom_plot_a6fb2873d35a8a8089842d81a70a54167}{Q\+Custom\+Plot\+::add\+Graph} and the resulting instance is accessed via \hyperlink{class_q_custom_plot_a6d3ed93c2bf46ab7fa670d66be4cddaf}{Q\+Custom\+Plot\+::graph}.
  197. To plot data, assign it with the \hyperlink{class_q_c_p_graph_a1df2fd710545c8ba3b2c99a39a27bf8b}{set\+Data} or \hyperlink{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{add\+Data} functions.
  198. Graphs are used to display single-\/valued data. Single-\/valued means that there should only be one data point per unique key coordinate. In other words, the graph can\textquotesingle{}t have {\itshape loops}. If you do want to plot non-\/single-\/valued curves, rather use the \hyperlink{class_q_c_p_curve}{Q\+C\+P\+Curve} plottable.\hypertarget{class_q_c_p_statistical_box_appearance}{}\subsection{Changing the appearance}\label{class_q_c_p_statistical_box_appearance}
  199. The appearance of the graph is mainly determined by the line style, scatter style, brush and pen of the graph (\hyperlink{class_q_c_p_graph_a513fecccff5b2a50ce53f665338c60ff}{set\+Line\+Style}, \hyperlink{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}{set\+Scatter\+Style}, \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}, \hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}).\hypertarget{class_q_c_p_graph_filling}{}\subsubsection{Filling under or between graphs}\label{class_q_c_p_graph_filling}
  200. \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} knows two types of fills\+: Normal graph fills towards the zero-\/value-\/line parallel to the key axis of the graph, and fills between two graphs, called channel fills. To enable a fill, just set a brush with \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush} which is neither Qt\+::\+No\+Brush nor fully transparent.
  201. By default, a normal fill towards the zero-\/value-\/line will be drawn. To set up a channel fill between this graph and another one, call \hyperlink{class_q_c_p_graph_a2d03156df1b64037a2e36cfa50351ca3}{set\+Channel\+Fill\+Graph} with the other graph as parameter.
  202. \begin{DoxySeeAlso}{See also}
  203. \hyperlink{class_q_custom_plot_a6fb2873d35a8a8089842d81a70a54167}{Q\+Custom\+Plot\+::add\+Graph}, \hyperlink{class_q_custom_plot_a6d3ed93c2bf46ab7fa670d66be4cddaf}{Q\+Custom\+Plot\+::graph}, Q\+C\+P\+Legend\+::add\+Graph
  204. \end{DoxySeeAlso}
  205. \subsection{Member Enumeration Documentation}
  206. \hypertarget{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!Error\+Type@{Error\+Type}}
  207. \index{Error\+Type@{Error\+Type}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  208. \subsubsection[{Error\+Type}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Q\+C\+P\+Graph\+::\+Error\+Type}}\label{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}
  209. Defines what kind of error bars are drawn for each data point \begin{Desc}
  210. \item[Enumerator]\par
  211. \begin{description}
  212. \index{et\+None@{et\+None}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!et\+None@{et\+None}}\item[{\em
  213. \hypertarget{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afaeae745e7cc1766bb8546e35d4b76a711}{}et\+None\label{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afaeae745e7cc1766bb8546e35d4b76a711}
  214. }]No error bars are shown. \index{et\+Key@{et\+Key}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!et\+Key@{et\+Key}}\item[{\em
  215. \hypertarget{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa2a5d89cd76fb8b6b18d71b8f6f6c0f43}{}et\+Key\label{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa2a5d89cd76fb8b6b18d71b8f6f6c0f43}
  216. }]Error bars for the key dimension of the data point are shown. \index{et\+Value@{et\+Value}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!et\+Value@{et\+Value}}\item[{\em
  217. \hypertarget{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa147022ccdc49f6bd48f904cb4f61872e}{}et\+Value\label{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa147022ccdc49f6bd48f904cb4f61872e}
  218. }]Error bars for the value dimension of the data point are shown. \index{et\+Both@{et\+Both}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!et\+Both@{et\+Both}}\item[{\em
  219. \hypertarget{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa761cb7d61670c1e2efecccd8974409ab}{}et\+Both\label{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa761cb7d61670c1e2efecccd8974409ab}
  220. }]Error bars for both key and value dimensions of the data point are shown. \end{description}
  221. \end{Desc}
  222. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!Line\+Style@{Line\+Style}}
  223. \index{Line\+Style@{Line\+Style}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  224. \subsubsection[{Line\+Style}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Q\+C\+P\+Graph\+::\+Line\+Style}}\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859}
  225. Defines how the graph\textquotesingle{}s line is represented visually in the plot. The line is drawn with the current pen of the graph (\hyperlink{class_q_c_p_abstract_plottable_ab74b09ae4c0e7e13142fe4b5bf46cac7}{set\+Pen}). \begin{DoxySeeAlso}{See also}
  226. \hyperlink{class_q_c_p_graph_a513fecccff5b2a50ce53f665338c60ff}{set\+Line\+Style}
  227. \end{DoxySeeAlso}
  228. \begin{Desc}
  229. \item[Enumerator]\par
  230. \begin{description}
  231. \index{ls\+None@{ls\+None}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!ls\+None@{ls\+None}}\item[{\em
  232. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aea9591b933733cc7b20786b71e60fa04}{}ls\+None\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aea9591b933733cc7b20786b71e60fa04}
  233. }]data points are not connected with any lines (e.\+g. data only represented with symbols according to the scatter style, see \hyperlink{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}{set\+Scatter\+Style}) \index{ls\+Line@{ls\+Line}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!ls\+Line@{ls\+Line}}\item[{\em
  234. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a3c42a27b15aa3c92d399082fad8b7515}{}ls\+Line\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a3c42a27b15aa3c92d399082fad8b7515}
  235. }]data points are connected by a straight line \index{ls\+Step\+Left@{ls\+Step\+Left}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!ls\+Step\+Left@{ls\+Step\+Left}}\item[{\em
  236. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859ae10568bda57836487d9dec5eba1d6c6e}{}ls\+Step\+Left\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859ae10568bda57836487d9dec5eba1d6c6e}
  237. }]line is drawn as steps where the step height is the value of the left data point \index{ls\+Step\+Right@{ls\+Step\+Right}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!ls\+Step\+Right@{ls\+Step\+Right}}\item[{\em
  238. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a9c37951f7d11aa070100fd16f2935c9e}{}ls\+Step\+Right\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a9c37951f7d11aa070100fd16f2935c9e}
  239. }]line is drawn as steps where the step height is the value of the right data point \index{ls\+Step\+Center@{ls\+Step\+Center}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!ls\+Step\+Center@{ls\+Step\+Center}}\item[{\em
  240. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a5adf7b04da215a40a764c21294ea7366}{}ls\+Step\+Center\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859a5adf7b04da215a40a764c21294ea7366}
  241. }]line is drawn as steps where the step is in between two data points \index{ls\+Impulse@{ls\+Impulse}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!ls\+Impulse@{ls\+Impulse}}\item[{\em
  242. \hypertarget{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aa3b358b4ae7cca94aceeb8e529c12ebb}{}ls\+Impulse\label{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aa3b358b4ae7cca94aceeb8e529c12ebb}
  243. }]each data point is represented by a line parallel to the value axis, which reaches from the data point to the zero-\/value-\/line \end{description}
  244. \end{Desc}
  245. \subsection{Constructor \& Destructor Documentation}
  246. \hypertarget{class_q_c_p_graph_a0393a38cf7183cbf46348eb6cf9a5a6c}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  247. \index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  248. \subsubsection[{Q\+C\+P\+Graph}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Graph\+::\+Q\+C\+P\+Graph (
  249. \begin{DoxyParamCaption}
  250. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{key\+Axis, }
  251. \item[{{\bf Q\+C\+P\+Axis} $\ast$}]{value\+Axis}
  252. \end{DoxyParamCaption}
  253. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_q_c_p_graph_a0393a38cf7183cbf46348eb6cf9a5a6c}
  254. Constructs a graph which uses {\itshape key\+Axis} as its key axis (\char`\"{}x\char`\"{}) and {\itshape value\+Axis} as its value axis (\char`\"{}y\char`\"{}). {\itshape key\+Axis} and {\itshape value\+Axis} must reside in the same \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} instance and not have the same orientation. If either of these restrictions is violated, a corresponding message is printed to the debug output (q\+Debug), the construction is not aborted, though.
  255. The constructed \hyperlink{class_q_c_p_graph}{Q\+C\+P\+Graph} can be added to the plot with \hyperlink{class_q_custom_plot_ab7ad9174f701f9c6f64e378df77927a6}{Q\+Custom\+Plot\+::add\+Plottable}, \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} then takes ownership of the graph.
  256. To directly create a graph inside a plot, you can also use the simpler \hyperlink{class_q_custom_plot_a6fb2873d35a8a8089842d81a70a54167}{Q\+Custom\+Plot\+::add\+Graph} function.
  257. \subsection{Member Function Documentation}
  258. \hypertarget{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!add\+Data@{add\+Data}}
  259. \index{add\+Data@{add\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  260. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::add\+Data (
  261. \begin{DoxyParamCaption}
  262. \item[{const {\bf Q\+C\+P\+Data\+Map} \&}]{data\+Map}
  263. \end{DoxyParamCaption}
  264. )}\label{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}
  265. Adds the provided data points in {\itshape data\+Map} to the current data. \begin{DoxySeeAlso}{See also}
  266. \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data}
  267. \end{DoxySeeAlso}
  268. \hypertarget{class_q_c_p_graph_a80cc91e1e0ef77eb50afc5b366d0efd9}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!add\+Data@{add\+Data}}
  269. \index{add\+Data@{add\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  270. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::add\+Data (
  271. \begin{DoxyParamCaption}
  272. \item[{const {\bf Q\+C\+P\+Data} \&}]{data}
  273. \end{DoxyParamCaption}
  274. )}\label{class_q_c_p_graph_a80cc91e1e0ef77eb50afc5b366d0efd9}
  275. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds the provided single data point in {\itshape data} to the current data. \begin{DoxySeeAlso}{See also}
  276. \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data}
  277. \end{DoxySeeAlso}
  278. \hypertarget{class_q_c_p_graph_a0bf98b1972286cfb7b1c4b7dd6ae2012}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!add\+Data@{add\+Data}}
  279. \index{add\+Data@{add\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  280. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::add\+Data (
  281. \begin{DoxyParamCaption}
  282. \item[{double}]{key, }
  283. \item[{double}]{value}
  284. \end{DoxyParamCaption}
  285. )}\label{class_q_c_p_graph_a0bf98b1972286cfb7b1c4b7dd6ae2012}
  286. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds the provided single data point as {\itshape key} and {\itshape value} pair to the current data. \begin{DoxySeeAlso}{See also}
  287. \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data}
  288. \end{DoxySeeAlso}
  289. \hypertarget{class_q_c_p_graph_ab6da6377541fe80d892a9893a92db9c6}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!add\+Data@{add\+Data}}
  290. \index{add\+Data@{add\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  291. \subsubsection[{add\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::add\+Data (
  292. \begin{DoxyParamCaption}
  293. \item[{const Q\+Vector$<$ double $>$ \&}]{keys, }
  294. \item[{const Q\+Vector$<$ double $>$ \&}]{values}
  295. \end{DoxyParamCaption}
  296. )}\label{class_q_c_p_graph_ab6da6377541fe80d892a9893a92db9c6}
  297. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Adds the provided data points as {\itshape key} and {\itshape value} pairs to the current data. \begin{DoxySeeAlso}{See also}
  298. \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data}
  299. \end{DoxySeeAlso}
  300. \hypertarget{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!clear\+Data@{clear\+Data}}
  301. \index{clear\+Data@{clear\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  302. \subsubsection[{clear\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::clear\+Data (
  303. \begin{DoxyParamCaption}
  304. {}
  305. \end{DoxyParamCaption}
  306. )\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}
  307. Removes all data points. \begin{DoxySeeAlso}{See also}
  308. \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data}, \hyperlink{class_q_c_p_graph_ae42d645ef617cfc75fc0df58e62c522a}{remove\+Data\+After}, \hyperlink{class_q_c_p_graph_a9fe0b3e54e8c7b61319bd03337e21e99}{remove\+Data\+Before}
  309. \end{DoxySeeAlso}
  310. Implements \hyperlink{class_q_c_p_abstract_plottable_a86e5b8fd4b6ff4f4084e7ea4c573fc53}{Q\+C\+P\+Abstract\+Plottable}.
  311. \hypertarget{class_q_c_p_graph_a3a69fbbaea30050a9cfe335a9a01cbf2}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!get\+Key\+Range@{get\+Key\+Range}}
  312. \index{get\+Key\+Range@{get\+Key\+Range}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  313. \subsubsection[{get\+Key\+Range}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Q\+C\+P\+Range} Q\+C\+P\+Graph\+::get\+Key\+Range (
  314. \begin{DoxyParamCaption}
  315. \item[{bool \&}]{valid\+Range, }
  316. \item[{{\bf Sign\+Domain}}]{in\+Sign\+Domain, }
  317. \item[{bool}]{include\+Errors}
  318. \end{DoxyParamCaption}
  319. ) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{class_q_c_p_graph_a3a69fbbaea30050a9cfe335a9a01cbf2}
  320. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  321. Allows to specify whether the error bars should be included in the range calculation.
  322. \begin{DoxySeeAlso}{See also}
  323. get\+Key\+Range(bool \&valid\+Range, Sign\+Domain in\+Sign\+Domain)
  324. \end{DoxySeeAlso}
  325. \hypertarget{class_q_c_p_graph_acdb1e7bb86fea2764b0adb104185832b}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!get\+Value\+Range@{get\+Value\+Range}}
  326. \index{get\+Value\+Range@{get\+Value\+Range}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  327. \subsubsection[{get\+Value\+Range}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Q\+C\+P\+Range} Q\+C\+P\+Graph\+::get\+Value\+Range (
  328. \begin{DoxyParamCaption}
  329. \item[{bool \&}]{valid\+Range, }
  330. \item[{{\bf Sign\+Domain}}]{in\+Sign\+Domain, }
  331. \item[{bool}]{include\+Errors}
  332. \end{DoxyParamCaption}
  333. ) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{class_q_c_p_graph_acdb1e7bb86fea2764b0adb104185832b}
  334. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  335. Allows to specify whether the error bars should be included in the range calculation.
  336. \begin{DoxySeeAlso}{See also}
  337. get\+Value\+Range(bool \&valid\+Range, Sign\+Domain in\+Sign\+Domain)
  338. \end{DoxySeeAlso}
  339. \hypertarget{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!remove\+Data@{remove\+Data}}
  340. \index{remove\+Data@{remove\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  341. \subsubsection[{remove\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::remove\+Data (
  342. \begin{DoxyParamCaption}
  343. \item[{double}]{from\+Key, }
  344. \item[{double}]{to\+Key}
  345. \end{DoxyParamCaption}
  346. )}\label{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}
  347. Removes all data points with keys between {\itshape from\+Key} and {\itshape to\+Key}. if {\itshape from\+Key} is greater or equal to {\itshape to\+Key}, the function does nothing. To remove a single data point with known key, use \hyperlink{class_q_c_p_graph_a4a706020b4318f118381648ef18aca3f}{remove\+Data(double key)}.
  348. \begin{DoxySeeAlso}{See also}
  349. \hyperlink{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{add\+Data}, \hyperlink{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{clear\+Data}
  350. \end{DoxySeeAlso}
  351. \hypertarget{class_q_c_p_graph_a4a706020b4318f118381648ef18aca3f}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!remove\+Data@{remove\+Data}}
  352. \index{remove\+Data@{remove\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  353. \subsubsection[{remove\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::remove\+Data (
  354. \begin{DoxyParamCaption}
  355. \item[{double}]{key}
  356. \end{DoxyParamCaption}
  357. )}\label{class_q_c_p_graph_a4a706020b4318f118381648ef18aca3f}
  358. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  359. Removes a single data point at {\itshape key}. If the position is not known with absolute precision, consider using \hyperlink{class_q_c_p_graph_a4a0fde50b7db9db0a85b5c5b6b10098f}{remove\+Data(double from\+Key, double to\+Key)} with a small fuzziness interval around the suspected position, depeding on the precision with which the key is known.
  360. \begin{DoxySeeAlso}{See also}
  361. \hyperlink{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{add\+Data}, \hyperlink{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{clear\+Data}
  362. \end{DoxySeeAlso}
  363. \hypertarget{class_q_c_p_graph_ae42d645ef617cfc75fc0df58e62c522a}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!remove\+Data\+After@{remove\+Data\+After}}
  364. \index{remove\+Data\+After@{remove\+Data\+After}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  365. \subsubsection[{remove\+Data\+After}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::remove\+Data\+After (
  366. \begin{DoxyParamCaption}
  367. \item[{double}]{key}
  368. \end{DoxyParamCaption}
  369. )}\label{class_q_c_p_graph_ae42d645ef617cfc75fc0df58e62c522a}
  370. Removes all data points with keys greater than {\itshape key}. \begin{DoxySeeAlso}{See also}
  371. \hyperlink{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{add\+Data}, \hyperlink{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{clear\+Data}
  372. \end{DoxySeeAlso}
  373. \hypertarget{class_q_c_p_graph_a9fe0b3e54e8c7b61319bd03337e21e99}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!remove\+Data\+Before@{remove\+Data\+Before}}
  374. \index{remove\+Data\+Before@{remove\+Data\+Before}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  375. \subsubsection[{remove\+Data\+Before}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::remove\+Data\+Before (
  376. \begin{DoxyParamCaption}
  377. \item[{double}]{key}
  378. \end{DoxyParamCaption}
  379. )}\label{class_q_c_p_graph_a9fe0b3e54e8c7b61319bd03337e21e99}
  380. Removes all data points with keys smaller than {\itshape key}. \begin{DoxySeeAlso}{See also}
  381. \hyperlink{class_q_c_p_graph_aa5c6181d84db72ce4dbe9dc15a34ef4f}{add\+Data}, \hyperlink{class_q_c_p_graph_ad4e94a4e44e5e76fbec81a72a977157d}{clear\+Data}
  382. \end{DoxySeeAlso}
  383. \hypertarget{class_q_c_p_graph_aa35b75b9032800d783df749c8a004ee9}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!rescale\+Axes@{rescale\+Axes}}
  384. \index{rescale\+Axes@{rescale\+Axes}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  385. \subsubsection[{rescale\+Axes}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::rescale\+Axes (
  386. \begin{DoxyParamCaption}
  387. \item[{bool}]{only\+Enlarge, }
  388. \item[{bool}]{include\+Error\+Bars}
  389. \end{DoxyParamCaption}
  390. ) const}\label{class_q_c_p_graph_aa35b75b9032800d783df749c8a004ee9}
  391. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  392. Allows to define whether error bars are taken into consideration when determining the new axis range.
  393. \begin{DoxySeeAlso}{See also}
  394. \hyperlink{class_q_c_p_graph_a2108a729046b0ab6e0516afb249dab13}{rescale\+Key\+Axis}, \hyperlink{class_q_c_p_graph_a2ba0e1df416486d7e74299ef8cf68bba}{rescale\+Value\+Axis}, \hyperlink{class_q_c_p_abstract_plottable_a7e8fc3be43c27ccacd70a7bf9d74a5cd}{Q\+C\+P\+Abstract\+Plottable\+::rescale\+Axes}, \hyperlink{class_q_custom_plot_ad86528f2cee6c7e446dea4a6e8839935}{Q\+Custom\+Plot\+::rescale\+Axes}
  395. \end{DoxySeeAlso}
  396. \hypertarget{class_q_c_p_graph_a2108a729046b0ab6e0516afb249dab13}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!rescale\+Key\+Axis@{rescale\+Key\+Axis}}
  397. \index{rescale\+Key\+Axis@{rescale\+Key\+Axis}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  398. \subsubsection[{rescale\+Key\+Axis}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::rescale\+Key\+Axis (
  399. \begin{DoxyParamCaption}
  400. \item[{bool}]{only\+Enlarge, }
  401. \item[{bool}]{include\+Error\+Bars}
  402. \end{DoxyParamCaption}
  403. ) const}\label{class_q_c_p_graph_a2108a729046b0ab6e0516afb249dab13}
  404. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  405. Allows to define whether error bars (of kind \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa2a5d89cd76fb8b6b18d71b8f6f6c0f43}{Q\+C\+P\+Graph\+::et\+Key}) are taken into consideration when determining the new axis range.
  406. \begin{DoxySeeAlso}{See also}
  407. \hyperlink{class_q_c_p_graph_aa35b75b9032800d783df749c8a004ee9}{rescale\+Axes}, \hyperlink{class_q_c_p_abstract_plottable_a1acecfcca3e7fcda00fcbaa3c886386f}{Q\+C\+P\+Abstract\+Plottable\+::rescale\+Key\+Axis}
  408. \end{DoxySeeAlso}
  409. \hypertarget{class_q_c_p_graph_a2ba0e1df416486d7e74299ef8cf68bba}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!rescale\+Value\+Axis@{rescale\+Value\+Axis}}
  410. \index{rescale\+Value\+Axis@{rescale\+Value\+Axis}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  411. \subsubsection[{rescale\+Value\+Axis}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::rescale\+Value\+Axis (
  412. \begin{DoxyParamCaption}
  413. \item[{bool}]{only\+Enlarge, }
  414. \item[{bool}]{include\+Error\+Bars}
  415. \end{DoxyParamCaption}
  416. ) const}\label{class_q_c_p_graph_a2ba0e1df416486d7e74299ef8cf68bba}
  417. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  418. Allows to define whether error bars (of kind \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afa147022ccdc49f6bd48f904cb4f61872e}{Q\+C\+P\+Graph\+::et\+Value}) are taken into consideration when determining the new axis range.
  419. \begin{DoxySeeAlso}{See also}
  420. \hyperlink{class_q_c_p_graph_aa35b75b9032800d783df749c8a004ee9}{rescale\+Axes}, \hyperlink{class_q_c_p_abstract_plottable_abfd0805eb1d955c0111a990246658324}{Q\+C\+P\+Abstract\+Plottable\+::rescale\+Value\+Axis}
  421. \end{DoxySeeAlso}
  422. \hypertarget{class_q_c_p_graph_abc9ff375aabcf2d21cca33d6baf85772}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!select\+Test@{select\+Test}}
  423. \index{select\+Test@{select\+Test}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  424. \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Graph\+::select\+Test (
  425. \begin{DoxyParamCaption}
  426. \item[{const Q\+Point\+F \&}]{pos, }
  427. \item[{bool}]{only\+Selectable, }
  428. \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}}
  429. \end{DoxyParamCaption}
  430. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_graph_abc9ff375aabcf2d21cca33d6baf85772}
  431. This function is used to decide whether a click hits a layerable object or not.
  432. {\itshape pos} is a point in pixel coordinates on the \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn\textquotesingle{}t be determined, -\/1.\+0 is returned. Further, if {\itshape only\+Selectable} is true and the object is not selectable, -\/1.\+0 is returned, too.
  433. If the item is represented not by single lines but by an area like \hyperlink{class_q_c_p_item_rect}{Q\+C\+P\+Item\+Rect} or \hyperlink{class_q_c_p_item_text}{Q\+C\+P\+Item\+Text}, a click inside the area returns a constant value greater zero (typically the selection\+Tolerance of the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} multiplied by 0.\+99). If the click lies outside the area, this function returns -\/1.\+0.
  434. Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.\+e. closer than 0.\+99$\ast$selection\+Tolerance).
  435. The actual setting of the selection state is not done by this function. This is handled by the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} when the mouse\+Release\+Event occurs, and the finally selected object is notified via the select\+Event/deselect\+Event methods.
  436. {\itshape details} is an optional output parameter. Every layerable subclass may place any information in {\itshape details}. This information will be passed to select\+Event when the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} decides on the basis of this select\+Test call, that the object was successfully selected. The subsequent call to select\+Event will carry the {\itshape details}. This is useful for multi-\/part objects (like \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}). This way, a possibly complex calculation to decide which part was clicked is only done once in \hyperlink{class_q_c_p_graph_abc9ff375aabcf2d21cca33d6baf85772}{select\+Test}. The result (i.\+e. the actually clicked part) can then be placed in {\itshape details}. So in the subsequent select\+Event, the decision which part was selected doesn\textquotesingle{}t have to be done a second time for a single selection operation.
  437. You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.
  438. \begin{DoxySeeAlso}{See also}
  439. select\+Event, deselect\+Event, \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}
  440. \end{DoxySeeAlso}
  441. Implements \hyperlink{class_q_c_p_abstract_plottable_a38efe9641d972992a3d44204bc80ec1d}{Q\+C\+P\+Abstract\+Plottable}.
  442. \hypertarget{class_q_c_p_graph_a2d03156df1b64037a2e36cfa50351ca3}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Channel\+Fill\+Graph@{set\+Channel\+Fill\+Graph}}
  443. \index{set\+Channel\+Fill\+Graph@{set\+Channel\+Fill\+Graph}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  444. \subsubsection[{set\+Channel\+Fill\+Graph}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Channel\+Fill\+Graph (
  445. \begin{DoxyParamCaption}
  446. \item[{{\bf Q\+C\+P\+Graph} $\ast$}]{target\+Graph}
  447. \end{DoxyParamCaption}
  448. )}\label{class_q_c_p_graph_a2d03156df1b64037a2e36cfa50351ca3}
  449. Sets the target graph for filling the area between this graph and {\itshape target\+Graph} with the current brush (\hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}).
  450. When {\itshape target\+Graph} is set to 0, a normal graph fill to the zero-\/value-\/line will be shown. To disable any filling, set the brush to Qt\+::\+No\+Brush.
  451. \begin{DoxySeeAlso}{See also}
  452. \hyperlink{class_q_c_p_abstract_plottable_a7a4b92144dca6453a1f0f210e27edc74}{set\+Brush}
  453. \end{DoxySeeAlso}
  454. \hypertarget{class_q_c_p_graph_a1df2fd710545c8ba3b2c99a39a27bf8b}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data@{set\+Data}}
  455. \index{set\+Data@{set\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  456. \subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data (
  457. \begin{DoxyParamCaption}
  458. \item[{{\bf Q\+C\+P\+Data\+Map} $\ast$}]{data, }
  459. \item[{bool}]{copy = {\ttfamily false}}
  460. \end{DoxyParamCaption}
  461. )}\label{class_q_c_p_graph_a1df2fd710545c8ba3b2c99a39a27bf8b}
  462. Replaces the current data with the provided {\itshape data}.
  463. If {\itshape copy} is set to true, data points in {\itshape data} will only be copied. if false, the graph takes ownership of the passed data and replaces the internal data pointer with it. This is significantly faster than copying for large datasets. \hypertarget{class_q_c_p_graph_a4c55d8ac13bfa42c8c93747820891a76}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data@{set\+Data}}
  464. \index{set\+Data@{set\+Data}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  465. \subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data (
  466. \begin{DoxyParamCaption}
  467. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  468. \item[{const Q\+Vector$<$ double $>$ \&}]{value}
  469. \end{DoxyParamCaption}
  470. )}\label{class_q_c_p_graph_a4c55d8ac13bfa42c8c93747820891a76}
  471. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  472. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector. \hypertarget{class_q_c_p_graph_a873fe46bdb20be5710428e474ade8908}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data\+Both\+Error@{set\+Data\+Both\+Error}}
  473. \index{set\+Data\+Both\+Error@{set\+Data\+Both\+Error}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  474. \subsubsection[{set\+Data\+Both\+Error}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data\+Both\+Error (
  475. \begin{DoxyParamCaption}
  476. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  477. \item[{const Q\+Vector$<$ double $>$ \&}]{value, }
  478. \item[{const Q\+Vector$<$ double $>$ \&}]{key\+Error, }
  479. \item[{const Q\+Vector$<$ double $>$ \&}]{value\+Error}
  480. \end{DoxyParamCaption}
  481. )}\label{class_q_c_p_graph_a873fe46bdb20be5710428e474ade8908}
  482. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. Additionally the symmetrical key and value errors of the data points are set to the values in {\itshape key\+Error} and {\itshape value\+Error}. For error bars to show appropriately, see \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.
  483. For asymmetrical errors (plus different from minus), see the overloaded version of this function. \hypertarget{class_q_c_p_graph_abb75736ecdbf6e6a7501e1da64fb18cf}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data\+Both\+Error@{set\+Data\+Both\+Error}}
  484. \index{set\+Data\+Both\+Error@{set\+Data\+Both\+Error}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  485. \subsubsection[{set\+Data\+Both\+Error}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data\+Both\+Error (
  486. \begin{DoxyParamCaption}
  487. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  488. \item[{const Q\+Vector$<$ double $>$ \&}]{value, }
  489. \item[{const Q\+Vector$<$ double $>$ \&}]{key\+Error\+Minus, }
  490. \item[{const Q\+Vector$<$ double $>$ \&}]{key\+Error\+Plus, }
  491. \item[{const Q\+Vector$<$ double $>$ \&}]{value\+Error\+Minus, }
  492. \item[{const Q\+Vector$<$ double $>$ \&}]{value\+Error\+Plus}
  493. \end{DoxyParamCaption}
  494. )}\label{class_q_c_p_graph_abb75736ecdbf6e6a7501e1da64fb18cf}
  495. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. Additionally the negative key and value errors of the data points are set to the values in {\itshape key\+Error\+Minus} and {\itshape value\+Error\+Minus}. The positive key and value errors are set to the values in {\itshape key\+Error\+Plus} {\itshape value\+Error\+Plus}. For error bars to show appropriately, see \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector. \hypertarget{class_q_c_p_graph_abce9f07c0d722bc3e4fa7bd73c7e5dfa}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data\+Key\+Error@{set\+Data\+Key\+Error}}
  496. \index{set\+Data\+Key\+Error@{set\+Data\+Key\+Error}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  497. \subsubsection[{set\+Data\+Key\+Error}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data\+Key\+Error (
  498. \begin{DoxyParamCaption}
  499. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  500. \item[{const Q\+Vector$<$ double $>$ \&}]{value, }
  501. \item[{const Q\+Vector$<$ double $>$ \&}]{key\+Error}
  502. \end{DoxyParamCaption}
  503. )}\label{class_q_c_p_graph_abce9f07c0d722bc3e4fa7bd73c7e5dfa}
  504. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. Additionally the symmetrical key error of the data points are set to the values in {\itshape key\+Error}. For error bars to show appropriately, see \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.
  505. For asymmetrical errors (plus different from minus), see the overloaded version of this function. \hypertarget{class_q_c_p_graph_ac15c749c5fedf740d5692c6fe67143b8}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data\+Key\+Error@{set\+Data\+Key\+Error}}
  506. \index{set\+Data\+Key\+Error@{set\+Data\+Key\+Error}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  507. \subsubsection[{set\+Data\+Key\+Error}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data\+Key\+Error (
  508. \begin{DoxyParamCaption}
  509. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  510. \item[{const Q\+Vector$<$ double $>$ \&}]{value, }
  511. \item[{const Q\+Vector$<$ double $>$ \&}]{key\+Error\+Minus, }
  512. \item[{const Q\+Vector$<$ double $>$ \&}]{key\+Error\+Plus}
  513. \end{DoxyParamCaption}
  514. )}\label{class_q_c_p_graph_ac15c749c5fedf740d5692c6fe67143b8}
  515. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. Additionally the negative key error of the data points are set to the values in {\itshape key\+Error\+Minus}, the positive key error to {\itshape key\+Error\+Plus}. For error bars to show appropriately, see \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector. \hypertarget{class_q_c_p_graph_acba6296eadcb36b93267628b8dae3de5}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data\+Value\+Error@{set\+Data\+Value\+Error}}
  516. \index{set\+Data\+Value\+Error@{set\+Data\+Value\+Error}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  517. \subsubsection[{set\+Data\+Value\+Error}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data\+Value\+Error (
  518. \begin{DoxyParamCaption}
  519. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  520. \item[{const Q\+Vector$<$ double $>$ \&}]{value, }
  521. \item[{const Q\+Vector$<$ double $>$ \&}]{value\+Error}
  522. \end{DoxyParamCaption}
  523. )}\label{class_q_c_p_graph_acba6296eadcb36b93267628b8dae3de5}
  524. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. Additionally the symmetrical value error of the data points are set to the values in {\itshape value\+Error}. For error bars to show appropriately, see \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector.
  525. For asymmetrical errors (plus different from minus), see the overloaded version of this function. \hypertarget{class_q_c_p_graph_a3afbfd7222d739351c69387904776f93}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Data\+Value\+Error@{set\+Data\+Value\+Error}}
  526. \index{set\+Data\+Value\+Error@{set\+Data\+Value\+Error}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  527. \subsubsection[{set\+Data\+Value\+Error}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Data\+Value\+Error (
  528. \begin{DoxyParamCaption}
  529. \item[{const Q\+Vector$<$ double $>$ \&}]{key, }
  530. \item[{const Q\+Vector$<$ double $>$ \&}]{value, }
  531. \item[{const Q\+Vector$<$ double $>$ \&}]{value\+Error\+Minus, }
  532. \item[{const Q\+Vector$<$ double $>$ \&}]{value\+Error\+Plus}
  533. \end{DoxyParamCaption}
  534. )}\label{class_q_c_p_graph_a3afbfd7222d739351c69387904776f93}
  535. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces the current data with the provided points in {\itshape key} and {\itshape value} pairs. Additionally the negative value error of the data points are set to the values in {\itshape value\+Error\+Minus}, the positive value error to {\itshape value\+Error\+Plus}. For error bars to show appropriately, see \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}. The provided vectors should have equal length. Else, the number of added points will be the size of the smallest vector. \hypertarget{class_q_c_p_graph_a10f50c5495ce45ef559ec2066194a335}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Error\+Bar\+Size@{set\+Error\+Bar\+Size}}
  536. \index{set\+Error\+Bar\+Size@{set\+Error\+Bar\+Size}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  537. \subsubsection[{set\+Error\+Bar\+Size}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Error\+Bar\+Size (
  538. \begin{DoxyParamCaption}
  539. \item[{double}]{size}
  540. \end{DoxyParamCaption}
  541. )}\label{class_q_c_p_graph_a10f50c5495ce45ef559ec2066194a335}
  542. Sets the width of the handles at both ends of an error bar in pixels. \hypertarget{class_q_c_p_graph_ab1c1ee03d8dd94676a564e5e5f11aac2}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Error\+Bar\+Skip\+Symbol@{set\+Error\+Bar\+Skip\+Symbol}}
  543. \index{set\+Error\+Bar\+Skip\+Symbol@{set\+Error\+Bar\+Skip\+Symbol}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  544. \subsubsection[{set\+Error\+Bar\+Skip\+Symbol}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Error\+Bar\+Skip\+Symbol (
  545. \begin{DoxyParamCaption}
  546. \item[{bool}]{enabled}
  547. \end{DoxyParamCaption}
  548. )}\label{class_q_c_p_graph_ab1c1ee03d8dd94676a564e5e5f11aac2}
  549. If {\itshape enabled} is set to true, the error bar will not be drawn as a solid line under the scatter symbol but leave some free space around the symbol.
  550. This feature uses the current scatter size (\hyperlink{class_q_c_p_scatter_style_aaefdd031052892c4136129db68596e0f}{Q\+C\+P\+Scatter\+Style\+::set\+Size}) to determine the size of the area to leave blank. So when drawing Pixmaps as scatter points (\hyperlink{class_q_c_p_scatter_style_adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e}{Q\+C\+P\+Scatter\+Style\+::ss\+Pixmap}), the scatter size must be set manually to a value corresponding to the size of the Pixmap, if the error bars should leave gaps to its boundaries.
  551. \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}, set\+Error\+Bar\+Size, set\+Scatter\+Style \hypertarget{class_q_c_p_graph_abd4c7f81939e10776ea64603a704f22a}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Error\+Pen@{set\+Error\+Pen}}
  552. \index{set\+Error\+Pen@{set\+Error\+Pen}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  553. \subsubsection[{set\+Error\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Error\+Pen (
  554. \begin{DoxyParamCaption}
  555. \item[{const Q\+Pen \&}]{pen}
  556. \end{DoxyParamCaption}
  557. )}\label{class_q_c_p_graph_abd4c7f81939e10776ea64603a704f22a}
  558. Sets the pen with which the error bars will be drawn. \begin{DoxySeeAlso}{See also}
  559. \hyperlink{class_q_c_p_graph_a10f50c5495ce45ef559ec2066194a335}{set\+Error\+Bar\+Size}, \hyperlink{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{set\+Error\+Type}
  560. \end{DoxySeeAlso}
  561. \hypertarget{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Error\+Type@{set\+Error\+Type}}
  562. \index{set\+Error\+Type@{set\+Error\+Type}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  563. \subsubsection[{set\+Error\+Type}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Error\+Type (
  564. \begin{DoxyParamCaption}
  565. \item[{{\bf Error\+Type}}]{error\+Type}
  566. \end{DoxyParamCaption}
  567. )}\label{class_q_c_p_graph_ac3614d799c3894f2bc646e99c7f73d38}
  568. Sets which kind of error bars (Key Error, Value Error or both) should be drawn on each data point. If you set {\itshape error\+Type} to something other than \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6afaeae745e7cc1766bb8546e35d4b76a711}{et\+None}, make sure to actually pass error data via the specific set\+Data functions along with the data points (e.\+g. \hyperlink{class_q_c_p_graph_acba6296eadcb36b93267628b8dae3de5}{set\+Data\+Value\+Error}, \hyperlink{class_q_c_p_graph_abce9f07c0d722bc3e4fa7bd73c7e5dfa}{set\+Data\+Key\+Error}, \hyperlink{class_q_c_p_graph_a873fe46bdb20be5710428e474ade8908}{set\+Data\+Both\+Error}).
  569. \begin{DoxySeeAlso}{See also}
  570. \hyperlink{class_q_c_p_graph_ad23b514404bd2cb3216f57c90904d6af}{Error\+Type}
  571. \end{DoxySeeAlso}
  572. \hypertarget{class_q_c_p_graph_a513fecccff5b2a50ce53f665338c60ff}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Line\+Style@{set\+Line\+Style}}
  573. \index{set\+Line\+Style@{set\+Line\+Style}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  574. \subsubsection[{set\+Line\+Style}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Line\+Style (
  575. \begin{DoxyParamCaption}
  576. \item[{{\bf Line\+Style}}]{ls}
  577. \end{DoxyParamCaption}
  578. )}\label{class_q_c_p_graph_a513fecccff5b2a50ce53f665338c60ff}
  579. Sets how the single data points are connected in the plot. For scatter-\/only plots, set {\itshape ls} to \hyperlink{class_q_c_p_graph_ad60175cd9b5cac937c5ee685c32c0859aea9591b933733cc7b20786b71e60fa04}{ls\+None} and \hyperlink{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}{set\+Scatter\+Style} to the desired scatter style.
  580. \begin{DoxySeeAlso}{See also}
  581. \hyperlink{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}{set\+Scatter\+Style}
  582. \end{DoxySeeAlso}
  583. \hypertarget{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}{}\index{Q\+C\+P\+Graph@{Q\+C\+P\+Graph}!set\+Scatter\+Style@{set\+Scatter\+Style}}
  584. \index{set\+Scatter\+Style@{set\+Scatter\+Style}!Q\+C\+P\+Graph@{Q\+C\+P\+Graph}}
  585. \subsubsection[{set\+Scatter\+Style}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Graph\+::set\+Scatter\+Style (
  586. \begin{DoxyParamCaption}
  587. \item[{const {\bf Q\+C\+P\+Scatter\+Style} \&}]{style}
  588. \end{DoxyParamCaption}
  589. )}\label{class_q_c_p_graph_a12bd17a8ba21983163ec5d8f42a9fea5}
  590. Sets the visual appearance of single data points in the plot. If set to \hyperlink{class_q_c_p_scatter_style_adb31525af6b680e6f1b7472e43859349abd144c291ca274f77053ec68cab6c022}{Q\+C\+P\+Scatter\+Style\+::ss\+None}, no scatter points are drawn (e.\+g. for line-\/only-\/plots with appropriate line style).
  591. \begin{DoxySeeAlso}{See also}
  592. \hyperlink{class_q_c_p_scatter_style}{Q\+C\+P\+Scatter\+Style}, \hyperlink{class_q_c_p_graph_a513fecccff5b2a50ce53f665338c60ff}{set\+Line\+Style}
  593. \end{DoxySeeAlso}
  594. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  595. \item
  596. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  597. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}