axes_transform — ANNOTATE plot op

• Data kinds: कोई नहीं → axes (केवल arguments से तय होने वाला op — यह कोई image या data input नहीं लेता)

• Call: import fullseye as fs; fs.ledger.axes_transform(rect, xlim, ylim, invert_y=True, xscale='linear', yscale='linear') (implementation को सीधे call करना हो तो import annotate; annotate.axes_transform(rect, xlim, ylim, invert_y=True, xscale='linear', yscale='linear'), registry से लेना हो तो opsannotate.get("axes_transform"))

उपयोग

data coordinate → pixel coordinate का (closed-form) mapping बनाता है।

image के तथ्य row नीचे की ओर और graph की परंपरा y ऊपर की ओर के बीच के अंतर को केवल इसी 1 जगह संभाला जाता है। figure का code इसी dict को साथ लेकर चलता है।

px = x0 + (x - xmin)/(xmax - xmin) * (w - 1)

py = y0 + (h - 1) - (y - ymin)/(ymax - ymin) * (h - 1) # invert_y

Parameters

rect : (x, y, w, h)

drawing area (ऊपर-बाएँ आधार, pixels)।

xlim, ylim : (lo, hi)

data range। lo == hi पर slope अनंत हो जाता है, इसलिए ValueError।

lo > hi (उल्टा axis) की भी अनुमति है -- depth या rank को ऊपर-नीचे उल्टा बनाने के लिए।

invert_y : bool

True (default) हो तो ylim[0] निचले किनारे पर आता है = सामान्य graph।

False हो तो image की अपनी दिशा (ऊपरी किनारे पर ylim[0])।

xscale, yscale : {'linear','log'}

'log' common logarithm है। range में 0 या उससे कम हो तो ValueError

(log axis को 0 देकर -inf को "किनारा" मानकर बनाया गया figure झूठ होता है)।

Returns

dict

{"rect", "xlim", "ylim", "invert_y", "xscale", "yscale"}।

Raises

ValueError

आयत गलत, range non-finite या शून्य चौड़ाई, w या h 2 से कम,

अज्ञात scale, log axis पर range में 0 या उससे कम।

उपयोग की विस्तृत guide

• figure_annotation family guide

पृष्ठभूमि guides (इस op के पीछे की physics और conventions)

• dataset_conventions — Training dataset के conventions — COCO / YOLO / VOC और visual inspection में सावधानियाँ

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• annotate_gallery — py -3.11 examples/annotate_gallery.py

• annotate_paper_tour — py -3.11 examples/annotate_paper_tour.py

• poc_beam_modal_video — py -3.11 examples/poc_beam_modal_video.py

• poc_camera_calibration — py -3.11 examples/poc_camera_calibration.py

• poc_camera_shake_deblur — py -3.11 examples/poc_camera_shake_deblur.py

• poc_crack_width_timeseries — py -3.11 examples/poc_crack_width_timeseries.py

• poc_dehazing — py -3.11 examples/poc_dehazing.py

• poc_dic_strain — py -3.11 examples/poc_dic_strain.py

• poc_driving_decisions — py -3.11 examples/poc_driving_decisions.py

• poc_driving_traffic — py -3.11 examples/poc_driving_traffic.py

• poc_focus_stacking — py -3.11 examples/poc_focus_stacking.py

• poc_interferometry_step — py -3.11 examples/poc_interferometry_step.py

• poc_measurement_system_analysis — py -3.11 examples/poc_measurement_system_analysis.py

• poc_motion_magnification — py -3.11 examples/poc_motion_magnification.py

• poc_panorama_drift — py -3.11 examples/poc_panorama_drift.py

• poc_particle_tracking — py -3.11 examples/poc_particle_tracking.py

• poc_photoelasticity — py -3.11 examples/poc_photoelasticity.py

• poc_pxrd_phase_peel — py -3.11 examples/poc_pxrd_phase_peel.py

• poc_registration_basin — py -3.11 examples/poc_registration_basin.py

• poc_river_surface_velocity — py -3.11 examples/poc_river_surface_velocity.py

• poc_strain_history — py -3.11 examples/poc_strain_history.py

• poc_structure_4d_deterioration — py -3.11 examples/poc_structure_4d_deterioration.py

• poc_superresolution_limits — py -3.11 examples/poc_superresolution_limits.py

• poc_template_tracking — py -3.11 examples/poc_template_tracking.py

• poc_timelapse_growth — py -3.11 examples/poc_timelapse_growth.py

• poc_wound_area_tracking — py -3.11 examples/poc_wound_area_tracking.py

• poc_xyt_event_surface — py -3.11 examples/poc_xyt_event_surface.py

वे अगले ops जिनसे type जुड़ता है (axes को input के रूप में लेते हैं)

data_to_pixel · axes_frame · grid_lines · ticks · plot_series

इसी category के (plot)

data_to_pixel · nice_ticks · axes_frame · grid_lines · ticks · plot_series


*Provenance: annotate.py — ANNOTATE operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.