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
1 vote
1 answer
43 views

3D plot is noisy

I have the following 3x3 matrix, dependent on the variables $k_{x}$,$k_{y}$ : ...
  • 185
0 votes
1 answer
34 views

Legends with Graphics object

I have a 3 column data, x-coordinate, y-coordinate and a weight to color that particular point. As far as I know, there is no inbuilt Mathematica function that allows me to do so. So I am trying this ...
  • 549
3 votes
0 answers
44 views

How to leave empty space on the right in tradingchart

The Tradingchart function is very useful, although tremendously graphics heavy. For better understanding of the image I would like to leave a white space on the right but it is ignored. For example. ...
1 vote
1 answer
65 views

Show Gaps in Data for ListLinePlot3D

For some reason, showing gaps in data is easier with ListLinePlot than with the closely related ListLinePlot3D. For example, <...
3 votes
2 answers
170 views

Intersection of a line and a circle and distance between them

i'm trying to plot the intersection point between a line and a circle but it's not working. How can I do that using the following command? ...
  • 43
2 votes
1 answer
52 views

How to show zoomed portion of MatrixPlot

I have the following code from a textbook: ...
1 vote
1 answer
51 views

Deformed arrow head bug in version 13.0.1.0

There is a bug in version 13.0.1.0 - head of an arrow pointing exactly along z-axis is deformed. Is it present also in newer versions? A workaround is to add ...
  • 5,280
3 votes
1 answer
49 views

Trouble Mapping a Geometric Transformations over a List of different types of Graphics Objects

I am working on some code that allows me to auto-rotate graphics (including ParmetricPlot3D and Plot3D graphics) objects while preserving mouse dragging in a smooth fashion. It works great. The code ...
  • 4,937
12 votes
4 answers
1k views

How can I make this pipe network shape?

I want to draw this shape in Mathematica. I don't know what to start with. Can I use BezierCurve? Or should I try to form an equation that could end up in this ...
  • 944
1 vote
1 answer
40 views

My AxesLabel appears too far from the axis in SphericalPlot3D

Any ideas on what I should do to make the "x", "y" and "z" labels appear at the ends of the axes. Thanks in advance. ...
0 votes
0 answers
46 views

Getting Log10 axis in Graphics Function

In the output shown in the following image, I need x axis to be logarithmic (base 10) instead of linear. When I used ListLogLinearPlot function I got scattered points instead of the required B Spline ...
2 votes
1 answer
88 views

Visualizing Imaginary Roots of $f(x) = \cos(x) + \cosh^2(x) = 0$

I was wondering if there is a way to show the four imaginary roots of the function $$f(x) = \cos(x) + \cosh^2(x) = 0$$ We can find the four imaginary roots using ...
  • 2,266
1 vote
0 answers
58 views

Place Graphics outside PlotRange without using PlotRangeClipping set to False

I want to place a Text (or some other Graphics object) outside the PlotRange using the Epilog...
  • 309
1 vote
1 answer
44 views

Plotting n-many lines on a ListLinePlot with Epilog information

I have a graph that I made that has 2 sets of data, and plots these as 2 lines using LineLinePlot, does some simple calculations and writes these as an ...
  • 505
3 votes
0 answers
74 views

Parallelogram and CSGRegion

I use Mathematica 13.1.0.0 and Windows 10. I defined a Parallelogram and a Disk. If I draw the first Graphics using them I can get the second Graphics to look exactly like it, as expected, after ...
  • 131
4 votes
2 answers
267 views

How to label the origin as (0, 0) instead of (0.0, 0.0)

I am plotting a function by the following code: Plot[x^2/5 + 1, {x, 0, 3}, AxesOrigin -> {0, 0}, PlotRangePadding -> 0, PlotRangeClipping -> False] ...
  • 53
0 votes
2 answers
33 views

How to make Mathematica label the origin when plotting several functions [duplicate]

I am plotting three functions using the following code: ...
  • 53
0 votes
0 answers
9 views

Message created when calling GraphicsArray from inside a CreateDialog[]-Window

When writing a little gui for convenient access to some functions of a package, I encountered the following problem: Some button calls a function of the package, which creates some graphics. Even ...
-1 votes
1 answer
88 views

Tangents of 2 circles [duplicate]

I am trying to write a function, tanCircles[], that finds the common tangents to two given circles (one not inside the other). The function's parameters are two list, each containing the x and y ...
1 vote
0 answers
39 views

StreamPlot "Part is not a Graphics primitive or directive."

I am trying to use StreamPlot with units. Here is a minimal example to produce the error "Part is not a Graphics primitive or directive." : ...
2 votes
1 answer
66 views

Discontinous lines of contour plot

I'm trying to plot a graph using contour plot as below, but the lines are not smooth as they should be, how can I fix that? ...
  • 35
2 votes
1 answer
143 views

How to show reflection in a Stadium Billiard

How to plot a stadium billiard using cartesian or polar coordinates. I want to show the reflection of a particle inside it. This is my code so far. ...
  • 944
1 vote
1 answer
112 views

Graph the eigenvalue as a function of x and y

I want to write down a small program that would have as input an eigenvalue, I take it directly from the lists of eigenvalues. In fact, the eigenvalue is a function of x and y. What I would like to do ...
2 votes
1 answer
84 views

Is it possible to use non-orthogonal 2D axes for plots in Mathematica?

I want to plot uni-variate functions using 2D plots but I want to be able to change the angle between the axes so that they are not perpendicular. Is this possible? I have looked through all the ...
  • 21
2 votes
2 answers
67 views

Customizing a RegionPlot

I would like to customize the RegionPlot with the following: Add text ticks to the RegionPlot Change ...
5 votes
2 answers
414 views

How could I generate random convex polygons of area 1?

How could you random convex polygons where the points of the graph $A(x_1,y_1) , B(x_2,y_2), ... $ come out, hopefully in rational format (a/b) in such a way that the total area of ​​the polygon is ...
  • 55
3 votes
0 answers
66 views

Exporting graphics of precisely specified measurements for printing [duplicate]

None of the links bellow seem to answer the problem with printing graphics "scaled to the real world" anymore: real size image printing exporting pdf with a precise page dimension in metric ...
  • 5,280
3 votes
4 answers
298 views

Plotting roots found using Reduce

I want to create a 2D scatter plot using roots found by the Reduce function; i.e., all integer points on a circle. ...
1 vote
2 answers
130 views

Using Epilog and Graphics to plot points and lines

I'm attempting to put a point onto my Plot but need help with the point sizing and using the Graphics function. I'm not sure I'm going about this correctly, but I have been able to produce the lines ...
  • 113
3 votes
3 answers
220 views

Graphic manipulation - Psychrometric chart

I'm working on a psychrometric chart on Mathematica. The code is as follows: ...
0 votes
0 answers
48 views

Manipulate: The animation disappears as soon as I start it, why? And even if I try to fix it "manually", Manipulate shows the wrong animation

Code: ...
  • 77
0 votes
2 answers
51 views

Why won't Graphics plot my point with coordinates depending on the solution of NDSolve?

...
  • 77
1 vote
1 answer
61 views

How to create a line with a label centered above it?

Can anyone help me create a line with a label shown in the picture below? The line is discontinuous near the middle to accomodate the label. The label is placed on top to avoid the problem when the ...
  • 2,642
0 votes
1 answer
39 views

How to plot all scalar multiples of a set of points

How can I graph the set of all scalar multiples of the points on the surface $(x,x^3,1)$, that is, $\{(t(x, x^3, 1)\mid t,x\in \mathbb R\}$ in mathematica? I tried ...
1 vote
1 answer
61 views

PloT/Graph decoration

I want this kind of picture in Mathematica with a transparent background of the ellipse such that the orange line also will appear. I tried it in the drawing tool but I am not getting the transparent ...
1 vote
0 answers
45 views

Graphics with higher resolution in Desktop version become pixelated when deployed to Wolfram Cloud

My project is to process images in Mathematica, such that given a list of checkboxes, the function will take specific coordinates from these processed images (imageValuePositions[]), and mark a ...
0 votes
1 answer
35 views

Aligning maximum of plot with x=0

In the picture below, I am trying to align the maximum of the ListLinePlot of meandata1 so that it is at x=0. I tried using AxesOrigin, but that only shifted the axes on the graph and not the dataset ...
7 votes
3 answers
478 views

Track chord movement

The point $P$ on the circle and the point $F$ inside the circle, perpendicular bisector of line $PF$ intersects the circle at two points $A, B$, the envelope of $AB$ is an ellipse. I use the following ...
  • 5,066
1 vote
1 answer
65 views

Drawing lines between coordinates in a list

Variable "l" is a list of coordinates and I am trying to draw a line from each coordinate to the next. But how? Apparently the last line isn't working. ...
0 votes
0 answers
32 views

Changing the default fonts, colours and padding of plots in Mathematica 13

Default legend font After a while of playing around with the option inspector, I've managed to change the default font and colour of the axis labels and tick labels of a 2D plot, as well as the ...
  • 636
0 votes
0 answers
21 views

How to get decorated and undecorated letters to have the same font in Graphics? V-12.0.0, Windows

With the default Stylesheet, executing the following code produces the output captured below Graphics[{Text["t=\!\(\*OverscriptBox[\(t\), \(_\)]\)"], Text["\!\(\*SubscriptBox[\(t\), \ \(\[...
0 votes
1 answer
42 views

Color in saved image different than in notebook

When I save an image in Mathematica 12.3 on Windows and then display it in a navigator, the colors look different. For example: ...
0 votes
0 answers
26 views

Align frame of 2 plots in graphicsColumn

Hi guys i was trying to align two plot placed vertically on top of one another but i am facing an issue. ...
  • 2,521
2 votes
2 answers
159 views

Region between finite lines or extracting a finite tesselation

EDIT2 the answers here (How to compute intersections of circles on a lattice) seem like they could help or solve the problem. EDIT: I saw this question about finding regions between lines before I ...
  • 3,567
0 votes
1 answer
57 views

How to produce a graphic-algabric figure in Mathematica with proper alignment?

Given a symmetry $S$, we can block-diagonalize a Hamiltonian, i.e, $S^\dagger H S = H_{\text{block}}$. The following image demonstrates that. I wonder how one can combine equations and plots with ...
  • 549
0 votes
1 answer
37 views

Plotting a row of ListDensityPlot with same bar legend

I would like to plot a row of three (maybe 4 or 5) ListDensityPlot and the export it as .eps (to use in a paper written in Latex). I want the same bar legend for all plots. Something like what is ...
  • 117
3 votes
1 answer
107 views

Aligning equal signs in the numerator and denominator of a fraction?

I am trying to make a fairly complicated plot that involves LineLegend. As part of the LineLegend's label, I am using ...
1 vote
1 answer
105 views
+100

Edges when exporting a graphic

I use a graphics primitive: square = Graphics[{EdgeForm[], Rectangle[{-1, -1}, {1, 1}]}, ImageSize -> 10] And export it: ...
1 vote
1 answer
126 views

Recovering data points and reproducing a figure

Yesterday, I asked a question here, that how can one read off the coordinates of the points and reproduce a published plot. Daniel Huber provided an immensely helpful answer and I could reproduce the ...
  • 333
2 votes
1 answer
100 views

How to crop the Graphics?

I can get a Graphics object from a PDF file like ...
  • 24.4k

1
2 3 4 5
89