Questions tagged [graphics]

Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of Plot commands.

Filter by
Sorted by
Tagged with
4
votes
2answers
88 views

Align y-Axes in Overlay plot

I learned about how to plot two datasets in a single plot with two y-axes by using Overlay as has been done in one of the answers in this question. Now, my ...
2
votes
1answer
38 views

How to join two graphics generated from paired-points lists?

The Fig.1 and Fig.2 are generated from two lists, Fig.3 is joined and edited from Fig.1 and Fig.2 in Adobe Illustrator, the codes and figures as follows. I want to know how to get Fig.3 by Mathematica ...
2
votes
0answers
38 views

Encoding spatial data in Mathematica

I am doing some experimentation with machine learning and robotics, and want Mathematica to be my primary platform. For it, I need to represent a room with some obstacles (circles) and a goal (square)....
5
votes
4answers
128 views

Construct, in some manner, a four-dimensional “RegionPlot”

Let me abuse some Mathematica notation and formulate the following "command": ...
1
vote
0answers
39 views

Tools that can convert mathematica images into tikz or pgf code to import to latex?

I have learned about Mathematica2latex from some websites, I don't know where to download it and how to use. Is there any other tools that can convert mathematica images into tikz or pgf code to ...
2
votes
1answer
30 views

Labeling points in GeoGraphics

I have the following code for labeling certain points at different latitude-longitude locations across the US stored in USLatLong. ...
1
vote
2answers
79 views

How to position vertices according to clustering coefficient in a nice way?

I have a graph and I want to rank each vertex according to its local clustering coefficient. I have done the following: ...
5
votes
2answers
109 views

Add region constraint to Graphics

I would like to only show the part of Black circles within the Red circle. Can I do that with ...
3
votes
3answers
452 views

How do you create draggable points inside a graphic image?

I want to create a simple line with two points that can be dragged (one at a time), as in image below: How can I do that without using sliders, but rather dragging the points themselves. I suspect ...
1
vote
1answer
52 views

How to set the position of the axis label in program?

I have studied the relational contents through the webpage Placing x-axes label below rather than at end of axes, but not found: (1)How to put annotation on the left of y axis and display the graphic ...
9
votes
4answers
443 views

How do you glue a text to a point?

I have a point {0,0} which I call A, and a point {2,1} which I call B. I want to make an image that looks like the one below. When I resize the image I want the text labels to follow the points, so ...
1
vote
1answer
62 views

Graphical imperfections when plotting a fourier series

When running the following I get the plot below. I'm a beginner, can anyone suggest why we see those graphical imperfections in the plot? ...
2
votes
1answer
76 views

Why will points in the Epilog “get lost” when combining two plots using Show? [duplicate]

I need to mark four points in a single graph, math does it separately, but when I put together both graphs, two points of a line disappear, I really do not know why. ...
5
votes
2answers
232 views

Recolour existing plots

Context More often than not I end up doing plots one after the other so that I have a set of plots with the same colour style. When I want to make it more publishable ready, I would like to reassign ...
7
votes
4answers
248 views
0
votes
1answer
28 views

Increase thickness of joined ListLogLogPlot[] curve

Here is my code: ListLogLogPlot[{{10^1, 10^1}, {10^3, 10^3}}, Joined -> True, PlotStyle -> Thick] The ...
8
votes
2answers
205 views

Pairwise Scatter Plots with Histograms and Correlations

Has anybody written a function which can scatter plot data with histograms and correlations? Here is an example form MATLAB. This is related but does not print correlations. R has a similar function. ...
9
votes
2answers
719 views

How can I get edges to bend to avoid crossing?

I want to generate a layered drawing of the Hoffman–Singlelton graph. As an example of what I want, here is a layered drawing of the Petersen graph: Now if I right click on the output of ...
2
votes
1answer
47 views

How to add the peak labels to an FTIR spectrum?

I have tried to plot the next FTIR spectrum and add their respective peak labels using Graphics and Show, but I think this doesn'...
0
votes
0answers
144 views

Aligning plot axes of multiple figures results in different size of the FrameTicks

I defined a new FrameTicksStyle, but their size is changed when more than one figure are stacked vertically. However, the size is accepted when figures are stacked ...
1
vote
0answers
41 views

How to scale the x-axis and y-axis non linearly, as per convenience? [closed]

Check the x and y axis. I want a command in which I can create such a plot.
0
votes
0answers
52 views

Problems plotting labels

When i plot labels on a graph, then the text "field" is much bigger than the text itself. It gives some problems for me regarding placing the labels properly. Can someone help me fix this? see code ...
0
votes
0answers
50 views

Mathematica Online and Exporting Animations

I am using the online trial version of Wolfram Mathematica. I have created an animation and I am trying to export this animation as a video. I have tried ...
3
votes
1answer
182 views

Graphical representation of connection of people

I want to make a graphical representation of the people with the location, but coding is a little bit challenging. Here is my input {Person,Location,Influences} ...
0
votes
1answer
36 views

Avoiding distinct background appearing behind plo label text

I keep getting a light background behind my text when I use the PlotLabels option (see picture below). ...
1
vote
1answer
44 views

Drawing Curve, Interpolating Points on a Sphere

I am implementing Lagrange motion of degree 6 in Wolfram Matematica, I have implemented everything and now when i came to an 'easy part', drawing part i am stuck. Which function could i use to draw ...
1
vote
1answer
40 views

Hide a part of a graph

How to hide a part of a torus. I mean in the following torus ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3+ Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] I want to hide the shaded part
3
votes
1answer
84 views

Improving identicon graphics

This question has two parts, a technical part about graphics, and a creative part. I'll accept answers primarily re the first part. The application is to come up with graphical identicons to ...
0
votes
0answers
60 views

Animated wrapping line and wrapping cylinder

I am trying to draw the following situation using any graphic program but I couldn't since I don't know how to make the animation. So your help is greatly appreciated. So my picture consists of two ...
1
vote
1answer
57 views

How to generate such an image?

Inspired by this, I'm using Graphicis to generate such a image, but it return I want every disk to be the same color. How to modify to make it work? Using image ...
0
votes
1answer
50 views

How to plot weighted sum of functions?

Consider a series of functions like Table[Cos[k t], {k, 1, 2, 1/10}] which are summed up together with some weights ...
0
votes
1answer
53 views

Analytic geometry - triangle [closed]

I have three points: A[1, 2]; B[3, 5] and C[5, 7] I have some random points, like this: E [4, 4] etc. I need to check if these random point are a part of the ABC triangle, or not.
0
votes
1answer
32 views

How to properly use image as vertex labels to draw graphs?

I imported an image and used it as vertex labels to draw a graph. The problem is I cannot control the size of the image. So it looks like this. Here's my code. ...
1
vote
1answer
67 views

Quality of parametric 3D plot on 2D plane

I need to plot the solution of an SDE which takes its values on the plane $\{z = 1\} \subseteq \mathbb R^3$. Here is the code of a minimal working example (the solution to the SDE is just the driving ...
5
votes
2answers
82 views

How to add SwatchLegend to a graph?

I created a random graph with each vertex colored randomly. I would like to add a SwatchLegend to the graph to indicate the value corresponding to a color. How can ...
0
votes
2answers
40 views

Using “Show” in an interval

I have plotted two functions as below: ...
0
votes
1answer
55 views

Showing a specific (complex) point in a Graphic [closed]

Somewhat related to a previous post that I made - Complex infinity at a point and division by zero I'm still following the book on this example and I've come to the part where one draws the '...
1
vote
0answers
31 views

Is is possible to plot a multilayer network?

I would like to generate and plot a network of networks, otherwise known as a multilayer network. That is, I have one network of type A nodes with type a links. I have another network of type B nodes ...
3
votes
2answers
72 views

Images as labels - resizing problem

I'd like to label a pie chart with images, ideally resized to fit inside the sectors. The problem is I can't seem to control the size of the imported images. Here's an MWE with no attempt at resizing, ...
1
vote
3answers
64 views

ContourPlot3D not wotking for slicing z axis in the ranges of 10^-13

I am using ContourPlot3D to obtain a slice plane at z = constant. However I find that the plane's position is not moving when the range is of the order of 10^-13. I am using the following code. ...
0
votes
0answers
67 views

How to make ternary Plot 3D in a different situation?

Owing to xzczd, I could make ternary plot with the following code: ...
21
votes
2answers
1k views

How to project 3d image in the planes xy, xz, yz?

Some idea of how to do something similar to the image, but with any 3d object
2
votes
2answers
89 views

Data plotting: problem with coloring the plots

I have a data to plot in the form of {x,y,f(x,y)}. Essentially, I have two curves (to be precise, surfaces). I want different colors for each surface. But I'm failing to do so. Here is my datatoplot: ...
3
votes
1answer
38 views

How to label the nodes of a graph with the numbers in a list?

I have an adjacency matrix "am" and I want to color the nodes with four colors. Here I what do... ...
1
vote
1answer
52 views

Color scheme problem

I have a problem in the color scheme in a 2D spectra. After a lot of calculations, i can generate a picture like this in the last part using this instructions ...
2
votes
1answer
84 views

Plotting large scale image embeddings

I'm looking for help making publication-quality graphics for visualizing 2D embeddings of image datasets, so that they look like this: These two-dimensional embeddings of thumbnails (sometimes with ...
7
votes
2answers
381 views

Plot Taylor–Couette flow ilustratation plot

I am trying to plot a set up for a classic problem of physics of fluids using Mathematica, see Wikipedia for a reference. The problem is the movement of two concentric cylinders with two radii and ...
1
vote
1answer
70 views

How to extend the axis without changing the graph?

How to extend the y-axis without changing the graph that is set by the interval? ...
3
votes
2answers
54 views

Issue with displaying a tree graph after deleting a vertex

Say, I have an expression tree: g = IGExpressionTree[ {{{1,2},{{3,4},{5,6}}},7}, VertexLabels -> "Name"] From that tree I want to delete all the vertices ...
1
vote
0answers
116 views

Light beams reflecting from parabola

How can we show the paths of three light beams in Mathematica which bounce back after hitting the parabola, in a single plot? Suppose we have the following code ...