internal:administration:idl
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| internal:administration:idl [2025/07/29 09:58] – [histogram] jan | internal:administration:idl [2025/11/25 14:42] (current) – [symboltypes] jan | ||
|---|---|---|---|
| Line 1845: | Line 1845: | ||
| 1 => Plus sign (+) | 1 => Plus sign (+) | ||
| 2 => Asterisk (*) | 2 => Asterisk (*) | ||
| - | 3 => Period | + | 3 => one pixel dot (.) |
| 4 => Diamond | 4 => Diamond | ||
| - | 5 => Triangle | + | 5 => Triangle up (if symsize> |
| 6 => Square | 6 => Square | ||
| 7 => X | 7 => X | ||
| Line 2505: | Line 2505: | ||
| ==== transparency ==== | ==== transparency ==== | ||
| - | IDL does not know transparent overlays but on pixel based devices you can implement it with TVRD and TVRD. | + | IDL does not know transparent overlays but on pixel based devices you can implement it with TVRD and TV. |
| Lets assume you want to put a bitmap BMP with size Nx, Ny at a position x0 y0 (pixels) with a tranparency factor of q_tra: | Lets assume you want to put a bitmap BMP with size Nx, Ny at a position x0 y0 (pixels) with a tranparency factor of q_tra: | ||
| Line 2674: | Line 2674: | ||
| %%-dGraphicsAlphaBits=1%% avoids gridlines after rastering (http:// | %%-dGraphicsAlphaBits=1%% avoids gridlines after rastering (http:// | ||
| %%-dEPSCrop%% crops the image at the bounding box. | %%-dEPSCrop%% crops the image at the bounding box. | ||
| + | |||
| + | You can execute gs from within IDL with the SPAWN command. As of IDL 9.x you need to prepend a '' | ||
| + | SPAWN, 'unset LD_LIBRARY_PATH; | ||
| + | |||
| ==== postscript -> PDF ==== | ==== postscript -> PDF ==== | ||
| Line 3244: | Line 3248: | ||
| A one dimensional histogram is e.g. generated with | A one dimensional histogram is e.g. generated with | ||
| - | histo = histogram( data , binsize=bin, locations = classes , /nan ) | + | |
| + | | ||
| the classes variable will contain the **lower borders** of the bins with the first bin starting at min(data). \\ | the classes variable will contain the **lower borders** of the bins with the first bin starting at min(data). \\ | ||
| Line 3263: | Line 3268: | ||
| or you write an own plot-histo procedure ... or you ask jan :-) ... | or you write an own plot-histo procedure ... or you ask jan :-) ... | ||
| + | |||
| + | |||
| + | A histogram with geometric spacing, i.e. each bin is by a factor q_bin larger than the previous.\\ | ||
| + | In this case data points lower or equal to zero are not allowed: | ||
| + | q_bin = 2.0 | ||
| + | log_binsize = alog10(q_bin) | ||
| + | histo = histogram( alog10(data[where(data gt 0)]), binsize=log_binsize, | ||
| + | classes = 10^log_bins | ||
| + | |||
| + | Plotting shall use then logarithmic scaling for the x-axes: | ||
| + | |||
| + | plot, classes , histo , psym=10, $ | ||
| + | xtitle = 'class (unit)', | ||
| + | ytitle = ' | ||
| + | /xlog | ||
| + | |||
| === 2-D histogram === | === 2-D histogram === | ||
internal/administration/idl.1753783093.txt.gz · Last modified: by jan
