Skip to main content

Questions tagged [labeling]

Questions related to displaying identifiable labels in graphics or any other expressions, such as in AxesLabel and Labeled. Not to be confused with Goto-Label.

Filter by
Sorted by
Tagged with
30 votes
3 answers
16k views

About the number format in ticks

I want to LogPlot a function, but I have the trouble in the number format in the ticks. For example, ...
yulinlinyu's user avatar
  • 4,835
38 votes
4 answers
19k views

Is there an option to change the space/distance between tick labels and axes labels for plots?

In an attempt to squeeze more plots and controls into the limited space for a demo UI, I am trying to remove any extra white spaces I see. I am not sure what options to use to reduce the amount of ...
Nasser's user avatar
  • 146k
10 votes
4 answers
5k views

FrameTicks and Ticks on Axes in Same Plot

I have a plot where I would like ticks shown on both the axes and the frame, with them labeled separately. I have custom labels for the frame and want the horizontal axis labeled with ticks ...
Damian Manda's user avatar
14 votes
2 answers
7k views

Manually assigning Axes label position in Plot3D

How can I adjust the position of axes labels with respect to the axes they are bound? Like shifting slightly right or left. I do not what to destroy the graphics' dynamics and render it 2D. ...
Al Guy's user avatar
  • 1,610
27 votes
3 answers
35k views

Placing x-axes label below rather than at end of axes

By default Mathematica places the x-axis labels at the end of the axes like Googling has suggested a way around this is to use Frame- for example ...
fpghost's user avatar
  • 2,125
9 votes
3 answers
13k views

Axes labels as multiples of $\pi$

I have a list as containing seven elements: ...
Unbelievable's user avatar
  • 4,887
36 votes
5 answers
32k views

Remove tick labels, but retain tick marks in RegionPlot (and related functions)

I would like to remove the numbering on the axes of the following RegionPlot. I would like to keep the tick marks but drop the numbering, I haven't figured out how ...
tlehman's user avatar
  • 2,154
14 votes
3 answers
9k views

Labeling points of intersection between plots

There are several answers where Mathematica used mesh points to show graphically where curve intersections exist. For example: Marking points of intersection between two curves or Is there a better ...
Amzoti's user avatar
  • 1,075
11 votes
4 answers
3k views

AxesLabel in Histogram3D unreadable

I'd like to modify this chart to relocate the z axis label so it's not over printing the values. ...
Cam's user avatar
  • 1,596
10 votes
2 answers
3k views

how to change the distance between tick mark and tick label

On similar lines as Is there an option to change the space/distance between tick labels and axes labels for plots? but I would like to reduce the distance between the tick mark and the tick label that ...
preeti's user avatar
  • 833
8 votes
7 answers
2k views

Annotating plots by adding labels with arrows connecting them to data points

I am making a 2D scatter plot with some data, let us say: ...
Luigi's user avatar
  • 1,303
16 votes
3 answers
3k views

Number format of axes in a plot

How can I have a conditional format of the values appearing in the axis of a plot ? I have in mind the number format options available in Excel for plots as described here http://peltiertech.com/...
faysou's user avatar
  • 11k
12 votes
4 answers
7k views

Labeling points in 3D plot

I am trying to label some points in 3D plotting. First, I'd like to label all points. The code below does not work, there seem to be a problem with a "Graphics" command, any ideas? Next, what would ...
energyMax's user avatar
  • 309
12 votes
2 answers
3k views

Using a function name instead of its definition in AxesLabel

I seek to use a token as an axis label, but this token, having other meanings, is expanded by Mathematica. If I enclose the token in quotes, it is not expanded, but it is also no longer italicized. ...
user001's user avatar
  • 1,397
32 votes
4 answers
19k views

What is the most elegant way to display multiple graphs with a common title?

I often seek to display two graphs, side by side, with a common label over them. There is no option for adding a label to GraphicsRow, which means, I think, that I ...
Michael Stern's user avatar
10 votes
1 answer
2k views

How to add own description to BarLegend?

Is there a default-option possibility to add own defined names of the contour-labels in BarLegend? I want to have a string "hot" ...
szogun's user avatar
  • 141
25 votes
6 answers
3k views

Label multiple edges between same vertices

I have a simple graph with multiple edges between two vertices, say: Graph[{ Labeled[a -> b, "A"], Labeled[a -> b, "B"] }] Unfortunately, Mathematica ...
Thomas Fankhauser's user avatar
22 votes
3 answers
1k views

How to get axes labels with MultiaxisArrangement

I am delighted to see the new MultiaxisArrangement feature, but when I tried it, I could not figure out how to label the two axes. For example, the following produces no axis labels. Nor does any ...
abwatson's user avatar
  • 1,919
18 votes
5 answers
8k views

Left-aligned PlotLabel?

Is it possible to have the text generated by PlotLabel (or any other function) aligned to the left side of the plot instead of in the center?
Matthew's user avatar
  • 459
10 votes
4 answers
8k views

Position of axes labels

I have a 2D parametric plot like the following: ...
Bernd's user avatar
  • 965
5 votes
2 answers
4k views

X label in GraphicsColumn is cut off

I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example, ...
yulinlinyu's user avatar
  • 4,835
2 votes
1 answer
806 views

Order of symbols in Graphics labels

Do you have any idea how to force an order of Greek letter in the graphics? When I type in AxesLabel -> {Cost, Δ OverBar[π]} the order is ...
wlq's user avatar
  • 75
23 votes
4 answers
2k views

Drawing the schematic diagram of algorithm

The B-Spline function used the alogrithm as shown below: I would like to draw it in Mathematica (Although this is my first time to use TreePlot) ...
xyz's user avatar
  • 625
11 votes
3 answers
2k views

Labeling plots without evaluation

This is my first question here so please excuse my mistakes. Let us consider a rather contrived example: ...
photon.engine's user avatar
10 votes
3 answers
4k views

Adding a label to an expression result

To make my notebook easier to read for non-Mathematica literate colleagues (myself included), I'd like to have the output from an assignment expression look somewhat more obvious. Normally an ...
CrustyNoodle's user avatar
7 votes
2 answers
6k views

How to place PlotLabel inside the plot frame

I have the following plot: ...
user1993416's user avatar
6 votes
6 answers
7k views

Converting CSV data to a Dataset

I have data in a csv file. The first row has labels, and the first column, too. Datos = Import["C:\\Users\\jodom\\Desktop\\Data.csv"] Tha data in the csv file is ...
jodomofo's user avatar
5 votes
2 answers
3k views

How to label axes in 3D plot adequately?

The following code produces plot with axes labels, which are jumping constantly. ...
Suzan Cioc's user avatar
  • 2,023
4 votes
3 answers
348 views

Putting the text after the line legend

I want to put the line legend after the text, here is my code; ...
Mostafa Peysokhan's user avatar
4 votes
2 answers
693 views

Axes labeling with superscripts

I need to label the y-axis of a plot with the form a/GeV^-1, where ^ denotes superscript. But Mathematica always write ...
John Taylor's user avatar
  • 5,863
2 votes
1 answer
299 views

Multi graphs in one plot with axis labels in multiples of Pi [duplicate]

How can I show Pi instead of numbers in x-axis of the plot below? Plot[{Sin[t], Cos[t]^2, Cos[t]}, {t, -Pi/2, Pi/2}, PlotStyle -> {Red, Blue, Orange}]
Holger Mate's user avatar
24 votes
3 answers
33k views

Formatting legend text font

I am using this code to plot a graph, and I am trying to make the font of the legend bigger. ...
Julia's user avatar
  • 931
22 votes
3 answers
90k views

Generate a Unit Circle Trigonometry

Struggling often with Trigonometry I would like to have some code to generate this Unit Circle Trigonometry. Would be of great help when I need to transform some data :
500's user avatar
  • 5,599
14 votes
5 answers
6k views

How to control the positions of contour labels?

...
matheorem's user avatar
  • 17.2k
14 votes
5 answers
2k views

label all vertices in polygon plot

Let's say I have the following plot Graphics[{Opacity[0.2], Rectangle[{0, 0}, {4, 4}]}] And I want to label all vertices on the graph to give their coordinates, in ...
Qiang Li's user avatar
  • 1,131
13 votes
2 answers
1k views

Vertical (mis-)aligning of plotmarkers and legend text in V10 PlotLegends

Consider this example, taken from the docs and modified for a larger font size using Style (V10.0): ...
Yves Klett's user avatar
  • 15.4k
10 votes
2 answers
3k views

How do I show the transition probabilities in a graph of a Markov process?

How do I get Graph to display the transition probabilities for a Markov process as labels on the graph's edges? The information is clearly present in the graph, but ...
orome's user avatar
  • 12.9k
10 votes
1 answer
826 views

Label both sides in BarChart

I have labeled the name(A,B,C) of each row on the left and value of each item , is there any way to put the total number(6,7,5) of each row on the right side without changing other labels? ...
withparadox2's user avatar
  • 2,481
9 votes
2 answers
500 views

How to use a Callout in GeoGraphics?

It seems callout is only for plots and not for graphics :( ...
user5601's user avatar
  • 3,675
8 votes
3 answers
374 views

RotateLabel doesn't work?

Bug introduced after 12.0.0 and persisting through 13.2.0 or later I'm creating a really simple plot with the code attached below. However the y-axis label is rotated and parallel to the y-axis by ...
Lepnak's user avatar
  • 89
8 votes
4 answers
458 views

Equivalent of RadialOutside for Graph VertexLabels

I'm creating a circular graph and want the labels to be placed on the outside of the vertices in a circular manner on the outside of the graph. I've been playing around with the ...
shellhead's user avatar
  • 115
8 votes
3 answers
465 views

DensityPlot with text [duplicate]

Is there any way to generate something like the image (so label chunks of the DensityPlot with the function value? (the image is really more of a list density plot, ...
Igor Rivin's user avatar
  • 5,094
8 votes
1 answer
368 views

Avoiding overcomplicated structure of groups, masks and splited text on vector format plot export

I'm trying to generate a template for exporting figures and plots in a consistent way that will allow easy editing in any vector based drawing software (such as illustrator). My problem is that ...
rhermans's user avatar
  • 36.8k
7 votes
2 answers
430 views

How to get distinct labels on parallel edges in a graph?

The following doesn't display as you'd expect: Graph[{Labeled[1 -> 2, "A"], Labeled[1 -> 2, "B"]}, VertexLabels -> "Name"] The parallel edges are both ...
David Bevan's user avatar
7 votes
2 answers
282 views

Imposing breaks in contours in a ContourPlot without rasterization

In this question, we are asked to compute breaks in the contours of a ContourPlot so as to place contour labels (values) atop the colored boundaries rather than the ...
David G. Stork's user avatar
6 votes
1 answer
856 views

Change x-axis date range in DateListPlot

unfortunately, I have a simple problem with my DateListPlot which I cannot solve on my own (with the guidance online). The code looks as follows: ...
Alexander Hempfing's user avatar
5 votes
1 answer
248 views

How to manually create gaps for the contour lines?

I'm wondering if there is any way to manually create gaps for the contour lines so that the contour labels can be put in the middle of these gaps. I try to make contour labels in the style like the ...
Frankie's user avatar
  • 605
5 votes
3 answers
4k views

Location of FrameLabel

I want to put FrameLabel above the axes as it is in case of AxesLabel. Is it possible to control the location of FrameLabel in MMA? ...
MsTais's user avatar
  • 488
5 votes
1 answer
480 views

Vertex labels of graph: {index,weight}

I would like to label vertices of a graph with an ordered pair of the vertex Name (or Index), and the ...
Joseph O'Rourke's user avatar
4 votes
2 answers
534 views

How can I add callouts to a LogLogPlot and control their positioning?

I made this plot ...
M.R.'s user avatar
  • 31.6k