To change the font size, set the FontSize property on the axes object after plotting. hAx. If you specify the labels, then the x-axis tick values and tick labels no longer update automatically based on changes to the axes. . set (hax, 'XTick', [dateV (1:30:end)]); datetick ('x', 24, 'keepticks'); 24 is a date format identifier. Learn more about yaxis reverse, xticks, tick labels, tickdir MATLAB I just switched from 2015a to 2018b and encounted a problem with the xticks and corresponding labels whenever I invert the y-axis. I thought I could do this by the following, but it's not working: ax1 = gca; set(ax1,'XTick',get(ax1,'YTick')); Instead, the x axis still has different ticks (more ticks, same range). The command sets the axis tick labels for the current figure. Use a combination of XTick and XTickLabel, e. If XTick is set by the user, this property is automatically set to manual. This makes SPHERE(25) look like a sphere, instead of an ellipsoid. Based on your location, we recommend that you select: . figure. For example, assign the Axes object to a variable, such as ax = gca. axis (option1, option2,. 10 26. Select a Web Site. What is currently happening is that you have 5 XTick values and only 3 labels. hA = gca; %Tick properties can be set in the X/Y/ZRuler. Sign in to answer this question. Edited: Matt on 15 Nov 2014. ax. xlim ( [0. Use the SPRINTF function to format your tick labels using the format of your choice then set the 'XTickLabel' or 'YTickLabel' property of the axis to use those strings as tick labels. ')) In this case that would mean you need to replace RV1Ser_64 with 1:6 in. a cell vector of chars. set(gca, 'Xtick',times_num) % X軸の目盛り位置を指定 % X軸の目盛りラベルを日付書式に変更 . Position (3) [the width in cm]. The 'XTickLabel' or 'YTickLabel' property of the axis would then use those strings as tick labels. set(gca,'XTickLabel', {labelslist}, 'FontSize',16) but it does not work, at least on with my version (2014a on Windows10). Add a comment. set(gca, 'xticklabels' ,{'1/1/1990', '1/2/1990', '3/1/1990', . Useful answer(s): try running xticks([]) (which is basically a degenerate form of Luis's detailed answer below), set(gca,'TickLength',[0 0]), or perhaps set(gca,'TickDir','out'), depending on what exactly you want the result to look like: no tick marks or labels in x axis - no tick marks in any axis - tick marks still present but not cluttering the plot. Use the set function to modify the properties of an existing Axes or the get function to query the current values of Axes properties. Try the following: x=[4000, 8000, 10000, 12000]; % define the x values where you want to have a tick set(gca,'XTick',x); % Apply the ticks to the current axes set(gca,'XTickLabel', arrayfun(@(v) sprintf('%d',v), x, 'UniformOutput', false) ); % Define the tick labels based on the user-defined formatset(gca, 'xTickLabel', xTickLabel); Note that once the tick labels have been set, they are in manual mode. Your method is simpler and it works. colormap gray; %subplot (2,2,1); imagesc (inclinedCyl_d20); ax = gca;I tried xt = get(gca, 'XTick'); set(gca, 'FontSize', 15); but it didnt work. Use this option if you set the labels and then want to set them back to the default values. If you want to line up the right-most edge of the December bar, then you will have to adjust your limits to something like: axis ( [0 x (end)+halfBarWidth -11 11]); The second part of your question is to the horizontal and vertical lines. YAxis. e. XTick = x (1); h. 0 Comments. When working with time series, the best you can do is to manually modify the XTick property of the axis so that it fits your needs once the plotting has been performed. Q&A for work. Traducir. Obviously a more general solution would identify the end-points of the tick range automatically as well. You can adapt the rule as needed. This will open the inspector window of the axes. See the "Creating 2-D Graphs" and "Labeling Graphs" in Using MATLAB Graphics for more information on plotting. Choose a web site to get translated content where available and see local events and offers. How can I specify the number of ticks, as is. Replace all but those that are multiples of 500 with a string with no characters. We evaluate the function at every point along its domain and plot the resulting x,y pairs, connecting consecutive dots. So you may want to use datetick2 on the File Exchange. jpg'); imhist(x); set(gca,'FontSize',15); with this code i am able to change the font size of. MATLAB selects the tick mark location based on the data range to produce equally spaced ticks (for linear graphs). Show -1 older comments Hide -1 older comments. Categories MATLAB Graphics Formatting and Annotation Labels and. Show 3 older comments Hide 3 older comments. I am generating a group of images with fixed dimensions to combine later into a video. When I turn the grid lines on, it creates verticle lines with steps of 10^0. Arif Hoq on 1. Theme. The list of xtick locations. For example, assign the Axes object to a variable, such as ax = gca. h is the handle to your heatmap object. Is there a Matlab option to have these custom values for the x-axis?. set(gca, 'YTick', [0. Quick question. (Of course this is nonsense if those serial numbers have a meaning when they are far apart) set (gca,'XTickLabel',num2str (get (gca,'XTick'). Reading the "Getting Started" chapters of the documentation explains the basic usage of Matlab exhaustively. For releases prior to R2014b, use the set function to set the property instead. plot (x,sin (sqrt (x-t0)*pi)) set (gca,'XTick', [t1,floor (t1)+0. Changing the axes FontSize using ax would change all of the X tick labels, X label. set(gca, 'XTick',xtix) xlim([dl dr]). A "handle" is a kind of address to identify all graphic objects. XTick = [-3*pi -2*pi -pi 0 pi 2*pi 3*pi]. The whole code is: widt. I'm trying to plot the attached csv file, but i am having problems creating a tidy x axis labels. Color = 'blue';Hi, I am trying to remove the Xticks that is located only at the upper side and the YTicks that is located right side of my plot. Set the font size for the current axes. set(gca, 'XTickLabel',{'MODEL1', 'MODEL2'}); In the stacked case, you're probably going to run into some pain because you'll only have a single bar. Someone previously suggested: set(get(gca,'xlabel'), 'Rotation',90) But when I do this, nothing changes. MATLAB's built-in function datetick also performs similarly. 1 (figure 1). TickDir = 'out' ; ax. matplotlib. For example: For example: plot(dt,X); set(gca,'XTick',datenum(1950:5:2015,1,1)); %. Use dot notation to query and set properties. Copy. 1 Answer. Accepted Answer . It's simply. set(gca, 'XTickLabel', str2num(a(:)-b(:)) ) It is important for this purpose that the expression passed to str2num be a column vector rather than a row vector. set(gca,'xtick',[],'ytick',[]); approach over the . With standard font sizes, one line would be 19 pixels high. Specify the x -axis limits and display tick marks along at the x -axis at increments of π. Learn more about matlab, plotting . "4. Plot Date and Time Data. Copy. ^2; plot (x,y,'r'); xlim ( [0 (2*pi)]); set (gca,'Xtick', [0 pi 2*pi]) (The subsindex function is not used in those lines. get_fignums. Share. I am trying to make a barplot using these ratios (which means 51 bars). With standard font sizes, one line would be 19 pixels high. I want to put labels between ticks, otherwise some labels overlap each other. m = xticklabels ('mode') returns the current value of the x -axis tick labels mode, which is either 'auto' or 'manual' . Theme. If someone can point me towards how I can use an array to set xticklabels or yticklabels then it would be really helpful. Share. Copy. I am plotting an EEG time series in MATLAB. My institution has recently updated to Matlab 2015a (from 2014a), and I'm struggling with the new graphics. xticks (x); Construct a string array from x. XTick = [-3*pi -2*pi -pi 0 pi 2*pi 3*pi]. 0000 6. . Find more on Graphics Object Properties in Help Center and File Exchange. If you are using R2016a or earlier, you can specify the limits, tick values, and tick labels by setting properties of the. Whatever =. Problem or bug in xticklabel_rotate while drawing heatmap and rotating xtick labels in Matlab. I want to keep all XTick lines for the grid, but write only the following values on the label: x=20,50,80,100,200. This only seems to work though if the minor ticks are already showing. set (gca, 'XTick', [1:2:8]/10, 'XTickLabel', names) The line for ‘xtk’ will help you determine where the plotting command puts the 'XTick' values. I would try to list those commands that can work both with. The set call sets the 'FontSize' of the associated text objects to 16 points. Because of this, MATLAB will repeat the labels that you have to populate labels for all XTick locations. Starting in R2019b, you can display a tiling of plots using the tiledlayout and nexttile functions. Call the nexttile function to create the axes objects ax1 and ax2. You can use the set command. set (gca, 'XTick', sort ( [0. When the last ("end") value of the vectors in x and y axes are the same, the code I use puts the ticks and values properly. set(gca, 'XTick', xticks) %xticks is a double vector with the tick positions. but I cant do it. Copy. Copy. 00000 0. When working with time series, the best you can do is to manually modify the XTick property of the axis so that it fits your needs once the plotting has been performed. I'm somewhat new to MatLab and I'm not familiar with a whole lot (had to research most of this above code too), so you might have to dumb your answers down for me, sorry :P2 Answers. Therefore, your xtick vector is: time = cellstr (datestr ( [ones (n,1)* [2012 3 10] x zeros (n,2)],'HH:MM')); Data = rand (1,24); plot (x,Data); set (gca,'XTick',0:23); set (gca,'XTickLabel',time); Here, I can plot the change in a certain variable as a function of time (in hours). 5 5. Hey, I have the following boxplot: Instead of 1, 2, 3 on the x-axis I want to have 50kW, 150kW, 300kW - I tried changing tick-values to either only 50, 150, 300 or with kW. Answers (1) The grid is a property of the current axis. about rotating axis label in matlab. XTickLabel; % overwrite the existing tick labels with present values has the effect of "turning off" the common string the inbuilt logic uses. Copy. set (gca, 'Units', 'centimeters') So if ax. y = rand (size (t)); % Some time dependent variable to plot. I am learning to draw a heatmap in matlab. 直方图f=imread ('test. CODE: clear all; close all; C0p1 = [91. Theme. 0000 14. Answers (1) You can cheat: use regularly spaced x-values for the plotting, but then change the tick labels to your serial numbers. Answers (1) Payas Bahade on 11 Feb 2020. in previous versions I would have used the set(gca. ax = gca; % current axes ax. Specify labels as a string array or a cell array of character vectors; for example, {'January','February','March'}. plot(1: 10, rand(1, 10)) ax = gca ; % Simply. datetick() normally ignores any tick positions already set and calculates "nice" tics based upon the time format. The first one lets you set your own location of tick-marks, the second lets you set arbitrary labels for those ticks. Edit. axes is the low-level function for creating axes graphics objects. See LineSpec for more information on specifying line styles and colors. plot (x, x); Specify you want ticks at each element in x. Truetype are the only fonts which can be rotated correctly on the screen and on printouts. t0 = 1 t1 = datenum ( [2012 9 21 7 0 0]) % 7 am today t2 = datenum ( [2012 9 21 17 0 0]) % 5 pm x = linspace (t1,t2); % generates a row vector y of 100 points linearly. . xticks ('auto') sets an automatic mode, enabling the axes to determine the x -axis tick values. Format='%d'; % use integer format, no decimal points. Rotate Tick Labels. You can use set(gca, 'TickDir', 'out'). 1:1]*100) % 10 ticks set (gca, 'YTick', [0:0. mat') pcolor (x,y,n); JoErNanO. get (gca) returns a struct of all graphics properties of the current axes, not the axes handle itself. 以分解风速序列为. m as a function of f:. User interaction can change the current axes or chart. The 'XTick' property must be numeric, and indicates to the axes where to place the tick marks. One could use 'normalized' units but then have to compute where the x-positions needs must be--a Catch-22 conundrum; to be totally general one needs must compute one or the other; your choice as to which. 2) Click on the "More properties" button on the right side of the window. For instance, the following command. However when i try the following code nothing happens. close all x = linspace(0,4*pi); y = sin(x); plot(x,y) Copy. The steps to be followed for this example are: Initialize the function whose current axes are required. ,95 (fake_x = 5:10:95). set(gca, 'XTick', dtTicks, 'xlim', dtTicks([1,end])) % xlim optional. 15 : Max]); It's also advisable not to use Min and Max since there are built-in functions with almost the same name. NOTE: If you are working under the MS Windows version of MATLAB, you will need to make sure that you are using a Truetype font in your text objects. I only want ticks every 10^1. You want to set your XTick values before you set your XTickLabels since you are constructing your XTickLabels from the values of the XTicks themselves. set (gca,'Xtick',1:1:Vector (length (Vector))) But this uses a linear interval for the Xtick. 1 and added those points to the plot and then iteratively produced a series of graphs where i added and updated my 'special' xtick label to the new point added e. One way to do this is by clicking on the axis you want and then doing get(gca,'XTick') where gca gives you the handle of the current axis (you can do help gca for more info). The x-coordinates are the datetime values for every day in June and. However when I get my figure the order of the numbers on the axis are wrong, for example on X axis it. Simple enough. 5 4. h=gca; h. TickLength = [1, 0. Find more on Axis Labels in Help Center and File Exchange. For example, assign the Axes object to a variable, such as ax = gca. set(gca,’xTick’,0:pi/2:4*pi). You would start by creating vectors for the days, months and years that you want to plot. To prevent MATLAB from changing the tick locations or number of ticks when the figure is resized or printed, change this property to manual. FontName, hAx. Problem with set(gca, 'Position', [. 本文目标:学会set(gca,xtick)和set(gca,xticklabel)的使用使用方法:set(gca,'xtick',坐标刻度);set(gca,'xticklabel',自定义坐标刻度);可以发现:两者的区别在于坐标刻度。前者的坐标刻度依赖于数据的真实坐标,后者的坐标刻度完全是自定义的。 For MATLAB R2015a and older versions: You can use one of the following methods to format your tick labels: 1. axis off one. a = get (gca,'XTickLabel'); set (gca,'XTickLabel',a,'fontsize',12,'FontWeight','bold') in a figure where I have 6 subplots and I do this for each subplot separately. First you need to store the handles of all subplot. x=imread('lena. The labels to place at the given ticks locations. Link. I want the names of all territories as tick labels on the x-axis. I. See Also. 05:1]) % 20 ticks. Create a scatter plot and rotate the tick labels along each axis. hello. datetick selects a label format based on the minimum and maximum limits of the specified axis. How can I avoid this※ MATLABにおけるシリアル日付番号とは、西暦0年1月1日を1とした経過日数です。. The easiest way to do this is simply use the following command instead of plot. 37b) The coefficient cn is, in general, a complex number. Create a scatter plot and rotate the tick labels along each axis. TickLength = [0 0]; This will allow you to keep the labels but remove the tick marks on only the x-axis. For example, assign the Axes object to a variable, such as ax = gca. Display x -Axis Tick Labels in Terms of Pi. I know I can set the tick direction to be pointing in our outside the plot box with. . Theme. set (gca, 'XTick', linspace (0,1,length (xlab)), 'XTickLabels', xlab) Now you see all of the labels (right). It provides two commands for coloring text: color{<name>}, where <name> is a color name like “red” or “green“, and color[rgb]{<R>,<G>,<B>}, where <R>, <G> and <B> are numbers between. 02 0. If I use set(gca,'xtick',[]) the ticks vanish as expected, but the exponent, common for all ticks, remains in the plot at the end of the axis. Parent. XTicksNumber=2, yet it still plots 10. If there are tick marks for which you do not wish to display labels, you'll want to give them an empty character array or empty string. 02 : 1); set(gca, 'Ytick',-1 : 0. Matlab can save to a pdf file. ) syntax or ax = gca; ax. Only if you're going to set one different than the other is there any point in it. the cyclist on 14 Nov 2015. Copy. Axes appearance and behavior. You can play with the axis properties of a plot, especially xtick and xticklabels. . Im not sure what you mean by duration, double and datetick. xticks () and yticks () essentially take vectors that define all the ticks on the scales/axes. I would like to know if I have to set the XTickLabel, YTickLabel, ZTickLabel, XTick, YTick, and ZTick properties. Axes Properties. If you don't, it may depend on your resolution if you get your desired result. Choose a web site to get translated content where available and see local events and offers. In my case, I wanted integer format. Right now I am using set(gca, 'XTickLabel',get(gca,'XTick')); and the tick labels are in standard notation. 5],'XTickLabel', {'Today','Rest of today'}) grid minor. Set the number of XTicks to the number of points in xData. If I use set(gca,'xtick',[]) the ticks vanish as expected, but the exponent, common for all ticks, remains in the plot at the end. set ( findobj (gca,'Type','line','Color',[0 0 1]),. I want the xscale to appear as below from 10^-1 to 10^1 with equal spacing but unable to achieve it with the following code. S = string (x); Hi. YAxis. Search Answers Clear Filters. 0. 01], the length of the XTicks would be equivalent to ax. 9171]; x= [0 1600 1100]; Xt=1:length (x); hand =plot (y, 'ob-'); set (gca, 'XTick',Xt. get_figlabels; matplotlib. 018, get (gca, 'XTick')])); But I want its text to be smaller and a different colour to the rest. TickLength = [0. Specify the tick label format for the x-axis of the lower plot by specifying ax2 as the first input argument to. 이 쉬운 걸 나는 몰랐던 게 함정. But I noticed in R2014b version, By default the yticklabels are assigned with "interpreter" as "tex". h. For releases prior to R2014b, use the set function to set the property instead. Sign in to answer this question. For releases prior to R2014b, use the. Call the tiledlayout function to create a 2-by-1 tiled chart layout. When you set XTick, MATLAB automatically resets XTickLabel, but the opposite is not true. For example, assign the Axes object to a variable, such as ax = gca. Learn more about structures, gca, set MATLAB I know you can save a structure variable for the current axis using get(gca); however, that structure seems useless except to list items within it. Default axes are very thin in Matlab plots and I tried to make them bold with . Here is a simple solution to formatting labels on MATLAB log plots. It is better to assign the axes or chart to a variable when you create it instead of relying on gca. 5 or every 1. length of x = 1000, length of y = 1000. The command sets the axis tick labels for the current figure. g figure(1) specialtick at x=9, figure(2) specialtick at x=9. Position (4) [the height in cm] and the length of the YTicks would be equivalent to ax. Then set the XTick property using dot notation, such as ax. XTickLabels is the property in which MATLAB stores the strings used to label the tick marks. Teams. The problem with this is the background of the figure. Specify as a vector of increasing values; for example, [0 2 4 6] xt = xticks returns the current x -axis tick values as a vector. 15. Then I noticed line 35 in xticklabel_rotate. Sign in to comment. So, instead of using that, I'd like to use such as t=['Scenario1',. Easiest is to just use the start y,m,d,h,min,sec excepting for the min instead of the constant start use a vector of number of minutes wanted. Unless you're using a fixed width font, characters have different widths which will also affect the centering. You can use cell arrays to define the ticks and tick-labels and then use them with set function call, to make it more elegant -. For releases prior to R2014b, use the. Copy. Any tips would be highly appreciated. Find the treasures in MATLAB Central and discover how the community can help you! Start Hunting!xticklabels(labels) sets the x-axis tick labels for the current axes. set(gca,'Xticklabel',10. datetick('x', 'HH:MM', 'keeplimits', 'keepticks') 以下の URL にて関連情報をご覧いただ. MATLAB Graphics Formatting and Annotation Labels and Annotations Axis Labels. Yes. For example, assign the Axes object to a variable, such as ax = gca. Copy. 01], the length of the XTicks would be equivalent to ax. The problem is that, while xtick function returns the value of all the existing ticks (visible and hidden ones), the xticklabels function only returns the labels of visible ticks. Another option is to increase the figure width using the 'Position' property. . ^get(gca,'Xtick')); Output is: 0 Comments. 在MATLAB中,set函数用于设置图形对象的属性。您可以使用set函数来修改图形对象的属性,例如线条颜色、线条宽度、标签、字体等。其中,handle是要修改属性的图形对象的句柄,'PropertyName’是要修改的属性名称,PropertyValue是要为该属性设置的新值。您可以使用MATLAB的帮助文档来查找特定图形对象的. For example, plot a data set that has datetime values on the x-axis and numeric values on the y-axis. Objective: To draw a heatmap of errors for two parameters to be optimized. Support; MathWorks;. yaxis. ax = gca; ax. I simply added at the end of set 'units','points','position', [70,70,750,200], as you can see in the code. The first and second elements specify the lower and upper limits for the x-axis. Or at least a specific numeric value that will not change or be resized based on the size on the Figure window. Matlab's documentation tells that the handle YColor and XColor can be used, but they also control the color of the tick labels. 0 2. Connect and share knowledge within a single location that is structured and easy to search. Example: x = logspace (0, log10 (64), 100); plot (x, log2 (x)) % plot something set (gca, 'xtick', (2. By changing property values, you can modify certain aspects of the axes. Copy. gca gets the axis of the current figure (Get Current Axis) XTick and YTick are the properties in which MATLAB stores the location of the respective tick marksAs far as I know, you can only have one legend-window for one set of axes in MATLAB, so the idea is: add a second (exatly equal) set of axes to the figure. The MATLAB plot function is plotting the signal with amplitude on y-axis and number of sample on x-axis. Show -1 older comments Hide -1 older comments. x = linspace (0,6*pi); y = sin (x); plot (x,y) xlim ( [0 6*pi]) xticks (0:pi:6*pi). EDIT: note that this a workaround that happens to work if you don't zoom nor resize the figure, but which is not robust to zoom/resize because the XTickLabelMode remains 'manual' and thus the. But you need to specify the x and y values when calling pcolor (and if you like, also) when specifying the ticks. Unfortunatlly it appears a truncated plot. To reverse an axis, you can set the 'XDir' or 'YDir' property of the current axes to 'reverse': set (gca,'XDir','reverse'); %# This flips the x axis. Your first tick mark is at 10 so it is off the far right end of your plot and can't be seen. line 1 line 2 line 3 line 4end{tabular}'; %// use the tick label at location 5 on the x axis set(gca,'xtick', 5. A really dirty way to do it is to add a picture of phi on the tick place. you can replace gca with your current handle. 2 Answers. Most plotting functions accept datetime and duration arrays as input arguments. 0 Comments. Sign in to comment. Specify ticks as a vector of increasing values; for example, [0 2 4 6] . 5. To access the current axes or chart without forcing the creation of Cartesian axes, use dot notation to query the figure CurrentAxes property. Code: axis ( [-scrsz (3),scrsz (3),-scrsz (4),scrsz (4)+200]); %Changes the data pixel size of the workspace. I want the x-axis to go from zero to 10000. Is there a method for only showing every other hour in the x axis i. When I plot (1:20, f), the x-axis are shown from 1 to 20. For releases prior to R2016b, instead set the tick values and labels using the XTick, XTickLabel, YTick, and YTickLabel properties of the Axes object. Sign in to comment. You should be using xTickLabel instead of XTick. Theme. This probably isn't what you want to do for the y axis. XTick))/100)); Sign in to comment. I want to add a single tick mark to the current tickmarks: Theme. Useful answer(s): try running xticks([]) (which is basically a degenerate form of Luis's detailed answer below), set(gca,'TickLength',[0 0]), or perhaps set(gca,'TickDir','out'),. set (gca, 'Units', 'centimeters') So if ax. so what is the short cut to inser this xtick?. and I'd like the real x values to show up in the figure. Find more on Axis Labels in Help Center and File Exchange. Copy. An example which demonstrates this is: I am trying to figure out how to set a custom number of tick marks on the x-axis of a plot I am creating in MATLAB, but I am not sure if this is possible. 2 Comments. Edit - further information about what boxplot actually does. set(gca, 'xtick',[]) the ticks vanish as expected, but the exponent, common for all ticks, remains in the plot at the end of the axis. . Passing an empty list removes all xticks. When I use set(gca,'XTick',-pi:pi/2:pi). 1. I tried to use. tx = get (gca,'XTickLabel'); set (gca,'XTickLabel',tx,'fontsize',10. You’ve raised a number of significant issues in your post and explained them thoroughly, so I suggest you bring it to the attention of MathWorks Tech Support. 1. Short answer: yes, it is possible. [1 logScale/powerScale 1]); %# data aspect ratio set(gca,'XTick',[1e10 1e12 1e14 1e16]); %# Change the x axis tick marksComentada: BK Shouharda el 28 de Jun. Is there a way to have a new line in an axis tick label in Matlab to produce a multiline tick label? The two suggestions from here for other text elements don't seem to work: set(gca,'xticklabel',{{'line1','line2'}}) fails, and. %种. Whenever, a semi-log plot is created using SEMILOG function, XTickLabels by default will be shown in exponential form. Theme. Vote. 2. From the image, I understand that the ticks only go to half the image before starting over and overwriting the previous ticks. yaxisproperties= get. xlim (ax, [1 15]); % Change the locations of the tick labels. 本文为我原创 本文禁止转载或摘编. Axes appearance and behavior. set(gca, 'xtick',1:3, 'XTickLabels',compose('%dkW',. yt = get (gca,'ytick'); for j=1:length (yt) % With log plots, MATLAB defaulted to exponential format, that is difficult for lay. XTick = [-3*pi -2*pi -pi 0 pi 2*pi 3*pi].