Questions tagged [ticks]

Ticks is an option for graphics functions that specifies where tick marks are placed on axes. It includes options for automatic placement, specific positions, as well as styling options.

372 questions
10
votes
3 answers

Remove minor ticks

I would like to remove minor ticks from my plots. For example, consider the following code: Plot[Sin[x], {x, 0, 10}] which generates: Is there any away to get rid of minor ticks and get something like: I'm looking for a simpler solution than…
ppp
  • 817
  • 8
  • 15
7
votes
1 answer

Ticks near origin not rendered in ListPlot

ListPlot[{{0.5, 0.5}}, PlotRange -> {{-1, 2}, {-1, 2}}, Ticks -> {Automatic, {{0., "fail"}, {1., "pass"}}}] The inserted text "fail" does not appear at the origin. (At x-coordinate 0.09 it is visible, but at 0.08 it is gone.)
L. Astola
  • 71
  • 1
5
votes
2 answers

Number formatting of ticks in graphs without specifying ticks explicitly

How do i use accounting form as default for ticks in graph? I am using $PrePrint=AccountingForm; but this is not affecting the ticks in graph. Michael this following is still causing problems. RectangleChart[{{{1, 275223.704333`}, {1,…
user13892
  • 9,375
  • 1
  • 13
  • 41
3
votes
1 answer

Is there a way to display plus sign near the positive the tick values?

Let's say I have a code like shown below: ListPlot[{{1,1},{2,1},{3,-1},{4,-1}}] An output is shown on the figure. The "-" (minus) sign is shown near the negative tick values of the Y axis. Is there a straightforward way to make the "+" (plus)…
Bulat
  • 323
  • 2
  • 9
2
votes
1 answer

Using the "Automatic" values in FrameTicks

In here, I have asked a question about the use of Tick (FrameTicks). An extension to the question is, x1 = Range[0, 10, 1]; y1 = Sin[x1]; (* This gives the automatic points of x-axis values,2,4,6,8 *) ListLinePlot[Thread[{x1, y1}]] (* This takes…
Chen Stats Yu
  • 4,986
  • 2
  • 24
  • 50
2
votes
1 answer

How to add "special" Ticks?

this is my code: In[76]:= sekprav = Import["C:\\Users\\Mitja\\Documents\\prakiktum 5 in \ 6\\sipanipravokotno.txt", "Table"] Out[76]= {{0, 22}, {1, 25}, {2, 20}, {3, 23}, {4, 26}, {5, 19}, {6, 29}, {7, 26}, {8, 19}, {9, 23}, {10,…
skrat
  • 1,275
  • 1
  • 10
  • 19
2
votes
1 answer

managing custom Ticks

I am trying to create a meaningful Operating Characteristic curve for use in Quality Lot Acceptance sampling. I have the following example (thanks to some help), yet when I alter the number of units sampled, or the lot size - the ticks are not right…
1
vote
1 answer

No ticks on y-axis after scaling

I try to scale the x-axis with ScalingFunctions options to make the curve look a line. But I dont see y-axis's ticks. ListPlot[{Table[{(x), (x)^1.5}, {x, 100}]}, Joined -> True, PlotRange -> {All, All}, Frame -> True, BaseStyle -> {FontSize ->…
1
vote
1 answer

Keep ticks but change interval for labels

I have a basic 2D plot Plot[x^2, {x, -20, 20}, PlotRange -> {0, 30}, Ticks -> {Range[-20, 20, 1], Range[0, 30, 1]}, ImageSize -> 1000] I have added the tick ranges so that there will be ticks at every integer. But this makes each tick get its own…
Gabe Conant
  • 113
  • 3
1
vote
2 answers

Style ticks individually

Is there any way to style individually ticks in Plot3D? I want to draw xmin ticks in a Plot3D graphics in red and xmax ticks in green.
0
votes
0 answers

How to make ticks longer?

Good time of day. I want to make ticks longer but cannot. Here is the code Needs["MaTeX`"] ticks[min_, max_] := Table[If[EvenQ[i], {i, i, .06, Red}, {i, i, .02, Blue}], {i, Ceiling[min],…