add_DataTips

A simple tool to create multiple data tips on multiple line handles, with color matched to that of each curve.

Herunterladen
Herunterladen

Sie verfolgen jetzt diese Einreichung

Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week

Zitieren als

Massimo Ciacci (2026). add_DataTips (https://de.mathworks.com/matlabcentral/fileexchange/72849-add_datatips), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert: add_DataTips_2D

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit R2014b und späteren Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
2.2.0

- Added customDataTipCallBack, Separated update function from creation of data tips
- Added setTips_CallBack to add colored tips by mouse click
- placefig_Normalized no need to know screensize now

Herunterladen
2.0.0

cleaned up test bench
added a check for interpolation which would fire error

Herunterladen
1.9.2

forgot to include one function

Herunterladen
1.9.1

screenshot was not updated ?

Herunterladen
1.9.0

Now it is possible to specify a different format per curve.
A new chopY parameter can truncate values close to 0 to exactly 0, on a single data tip, without affecting precision of other data tips.

Herunterladen
1.8.0

fixed bug when plot contains only one point

Herunterladen
1.7.0

- fixed bug when xdata was not sorted or xvalues upon call
- added feature: can define only X or only Y values on tip
- added feature: when plot handles not given as input, consider stem plots too

Herunterladen
1.5.0

Hopefully fixed issue with the background color of the data tips.

Herunterladen
1.4.0

Now one can pass empty handles ( h_curve_Array) and the function will fetch them from gca.

Herunterladen
1.3.0

Fixed background color with simpler HSL space which preserves hue.

Herunterladen
1.2.0

Solved this warning by adding a check on interp position of tip:
Warning: Error updating PointDataTip.
DataSpace or ColorSpace transform method failed"

Herunterladen
1.1.0

updated for ML2016b: added drawnow to fix potential error
prevent error when data tip out of current xlims

Herunterladen
1.0.1

removed unused old code

Herunterladen
1.0.0

Herunterladen