# 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.

559 questions
Filter by
Sorted by
Tagged with
32 views

### Problem with AxesLabel and LegendLabel

I'm trying to combine VectorPlot and DensityPlot on the same graph. So I have: ...
204 views

### Why does Mathematica try to take the first element of the empty list when plotting?

I'm using Mathematica 12.1.1.0. When I enter ...
27 views

### How to get Callout and Text[…,Offset[…]] to use the same coordinate system in Mathematica 12?

I could have sworn this worked in a previous version of Mathematica, but when I transcribe the coordinates used to label text offsets, I get errors like ...
903 views

### Generating a convex hull with the hull boundary points labeled

I'm very new to Mathematica, and I'm sure my question is trivial. Suppose a have a (long) list whose elements are of the form {{x, y}, n}, where ...
54 views

### Variable subscript in AxesLabel [closed]

I am calling $y_{n}=x^{n}$ and I want to plot $ln(y_{n})$ for a number of different integer values of $n$ (I know this is very simple- it's actually a much simpler version of what I'm actually trying ...
49 views

### Double Marker in one PlotLegend

I'm trying to produce a plot to compare two approximations which have in common the same parameter alpha. I wish to get a plot like showed in the picture: but I cannot combine the markers and width. ...
236 views

### Why does TreePlot ignore the vertex labels in a TreeGraph argument?

Example (watch the vertex labels): aTree = TreeGraph[{"a" -> "b", "a" -> "c"}, VertexLabels -> "Name"] ...
403 views

### How to customize labels in TreePlot?

I want to specify the labels attached to vertices in TreePlot, allowing distinct vertices to carry the same label. The following attempt fails: ...
77 views

### Move axis and tick labels in RegionPlot to the top, change border color

I use this code RegionPlot[ Sin[t^(1/3)*y] > 0, {y, 0, 5}, {t, 0, 8}, FrameLabel -> {"y", Rotate["t", 270 Degree]}] and the result is ...
2k views

### Labeling points of a list in plot

A list of georeferenced points is: ...
217 views

### Multi-named Vertices (or Overlapping Vertices) in TreePlot/LayeredGraphPlot, or Merging Trees

If there is a series of rules from which a TreePlot/LayeredGraphPlot is made: ...
897 views

### Vertex labels versus vertex names in VertexRenderingFunction

The VertexRenderingFunction seems to only use names, not labels. For example: ...
135 views

### Why Does GraphPlot mislabel Vertices from a Graph?

A very peculiar thing is happening when I wrap a Graph with GraphPlot. The picture below shows the correct vertex labeling. However, GraphPlot changes the vertex labeling! Am I misusing this function ...
493 views

### Deleting a row or column of an adjacency matrix while maintaining the associated label

I am currently working with a weighted adjacency matrix for a directed graph, and it contains several 0 columns and rows. With the unaltered matrix, I am able to monitor the relations between vertices ...
181 views

### Why does (Layered)GraphPlot lose labels and renumber vertices?

I define a graph of numbers as vertices, but also labeled, like g=Graph[{Labeled[1 \[DirectedEdge] 5, "text1"]…},VertexLabels -> {79 -> "text2",…}]. This is ...
59 views

### How can labels be added to a HighlightGraph?

I would like to add the names of vertL to this HighlightGraph. edges.csv is a two-column ...
273 views

### How to label only leaves in TreeForm?

I have a Huffman encoding represented as a list in the following manner: encoding = {{{w, d}, {o, s}}, {{{e, q}, a}, {i, j}}}; This means that ...
100 views

### Offset directed edge arrows with VertexLabels in panels

This Q is related to this one but haven't found a way to extend it to the use of VertexLabels in panels. Given this graph data: ...
311 views

### Overlapping EdgeLabels

I have to make a directed graph for a maximum flow algorithm assignment. Although I have managed to make the graph for the better part, it still needs some work. The problem is that Mathematica ...
771 views

### How to assign graph-node label as node value?

I am facing the following problem: I need to work on several already-designed graphs, accessible in ".DOT" format. Mathematica can perfectly read these graphs, however because the nodes of the graphs ...
1k 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 ...
172 views

I have: ...
498 views

### VertexLabels, EdgeLabels and the direction of the arrows on a directed graph

I want to have three network types. My plan is to put them together in a figure file via marking them with (a) (b) and (c). The figures that I want to have, have some problems. Here is my code ...
215 views

### How can I extract weights labelling edges starting from a fixed set of vertices

Let g be a directed weighted graph (in particular is tree). Given a set of vertices A, how can I extract the weights in a set <...
274 views

### Vertex Labelling and Word wrap

I am having trouble formatting vertex labels, explicitly adding line breaks to Vertex labels for word wrapping and other purposes. I have explored the pane option suggested here but when I include ...
224 views

### Drawing finite-state automata without using VertexRenderingFunction

In the tutorial entitled "Hierarchical Drawing of Directed Graphs" in Mathematica 12, there is an example of how to draw a graph with several properties I want, but it uses an option called ...
431 views

### Displaying two items in a graph's edge labels

Is it possible to have double edge labels displayed by a graph? I tried EdgeLabels -> {Placed["Index", 0.5], Placed["Name", 0.25]} but it didn't work.
972 views

### Vertex Names as Labels in GraphPlots

I'm trying to use GraphPlot to draw a Graph which is constructed from an adjacency matrix and am having trouble with the labels in the plot. I am doing (data is a silly example) the following: ...
2k views

### Place graph vertex labels in circles

Consider the following code: ...
293 views

### Ploting a parallel graph for an animation

I am sorry that my attempt to obtain a fully functional plot as I want failed badly because I am not able to integrate the features to the graph. Here is my simple code: ...
238 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 ...
179 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}]
1k views

...
65 views

### ListPlot give special labels position with Callout

When I use ListPlot, I want to show the labels, such as ListPlot[Callout[#, #, Above] & /@ Range, Joined -> True, Mesh -> All] Now all positions are ...
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) ...
1k views

### How to create Diagrams using Wolfram / Mathematica?

How can one use Wolfram to make diagrams like with the arrows labeled as well (to label "mediating factors" between the causal elements)?
309 views

### How to put a list of values on a single axis and add custom labels

I have a table in the following format: Apple 2 Pear 3 Banana 5 Orange 6.5 .... I would like to put the values on a single horizontal axis and add corresponding descriptive labels (apple, pear, ...
84 views

### How do I connect a line to a graph of the graph?

I want to connect a line of plot to plot which describe about plot's name, in the following code: Plot[{Sin[x], Cos[x]}, {x, 0, 2*Pi}] Any suggestion?
67 views

### Why are callout labels being double counted on my stacked bar chart?

See below: The problem is that the "leftist" labels are being counted twice on the right stacked bar. How to fix this?
99 views

### Can I label a point in a Plot3D? and how

This question comes after I received some nice answers of yours, concerning the labeling of intersection points of two curves in the , see hereHow to label intersection point in Plot The answers I ...
947 views

### How to put a PlotLegends in this case?

Here is my problem: I have to make a plot in log log scale, and I would like to put a Plot Legend INSIDE the plot (in order to include it into the document with all the specifications). The plot must ...
148 views

### Changing LabelingFunction Color

Want to set point text label colors to match actual points. Should be obvious but... Workaround is to change ALL label coloring but this is not desired. Would like to have black axis labels. Also ...
175 views

### Label points on a Plot

I need to label the blue coloured points in the following graph I have plotted in the same plot. IN Specifically, I intend to label those points with their (x,y) values. View my .nb file on ...
89 views

### how to add labels of points next to it based on index in ListPlot

I have a list of some points. I plotted each point and its closest surrounding points. ...
116 views

### Label curves with corresponding parameter [closed]

How can Plotlegend label each curve with the corresponding value of parameter param in the code below? ...
88 views

### Legend with matching lines

If it is a duplicate, I apologize. I have the function ...
114 views

### How to put a label on the intersections points

I am really new to MATHEMATICA and I am struggling to make a nice graph as follows: I am stuck a bit as I cannot put labels on the intersection points....I do not want to use the drawing pallete as ...
332 views

### Labelling on ParametricPlot

Is it possible to add to the Mesh points in a ParametricPlot the x-values in sort of a ...