Plot, findgen(11), COLOR=FSC_COLOR('dark red'), $ Here as well.) Here is an example of what I mean. The color you want, since you can use the Color keyword Would be a good time to get the area outside the polygon Method you will be losing the Plot command's ability to erase whatever isĬurrently in the window before it draws. Want to erase the window first with the Erase command, since with this Then draw your plot with the NoErase keyword set. You can draw your background polygon first into that position, Is there a better way to do this?ĪNSWER: If you position your plot with the Position keyword, then I've tried adding this background with the Polyfill command, but then my plot tick I want just the area of the plot enclosed by the axes in a differentĬolor. The Background keyword to establish the background for the display window, but that's See Thread Pool Keywords for details.QUESTION: I'd like to have a color background on my plot. In addition, you can use the thread pool keywords TPOOL_MAX_ELTS, TPOOL_MIN_ELTS, and TPOOL_NOTHREAD to override the defaults established by !CPU for a single invocation of this routine. The values stored in the !CPU system variable control whether IDL uses the thread pool for a given computation.
This routine is written to make use of IDL’s thread pool, which can increase execution speed on systems with multiple CPUs. Setting this keyword is equivalent to adding a constant offset to each element (after first multiplying by INCREMENT if necessary) and then converting to the result type.
Set this keyword to a double-precision number giving the value of the first element in the array. Setting this keyword is equivalent to multiplying each array element by this value and then converting to the result type. Set this keyword to a double-precision number giving the spacing between values in the array. If the dimension arguments are not integer values, IDL will convert them to integer values before creating the new array. If multiple arguments are specified, they must all be scalar expressions. If a single argument is specified, it can be either a scalar expression or an array of up to eight elements.
ArgumentsĮither an array or a series of scalar expressions specifying the dimensions of the result. Returns an array of the specified dimensions where each element of the array is set to the value of its one-dimensional subscript. first = FINDGEN( 100) second = FINDGEN( 100, START= 1) final = first/second PRINT, final See the data plotted.
ExampleĬopy and paste the following code at the IDL command line to see an example of using FINDGEN. In this case, you should consider using DINDGEN to return double-precision values.
If you create a FINDGEN with values larger than 16777215, your array will contain duplicates and discontinuities beyond this value. Note: Values greater than 16777215 cannot be accurately represented using single-precision floating-point arithmetic. For example, F=FINDGEN(100) will create a 100-element, single-precision, floating-point array with the values 0.0, 1.0. Each element of the array is set to the value of its one-dimensional subscript. The FINDGEN function creates a floating-point array of the specified dimensions.