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
0answers
34 views

How to Inherit Arrowheds size?

I'm trying to write a Module that produces some arrows with custom Arrowhead shapes. However, I want the code external to the <...
3
votes
1answer
66 views

How to combine bumps and dimples?

I'm working on a set of diagrams to try to make interesting math activities for positive and negative integers. These diagrams look like this. (This diagram would represent 4-3=1. Later, I'll test ...
5
votes
0answers
74 views

Exported arrow to PDF or EPS messes up its tip [duplicate]

The code g = Graphics[{AbsoluteThickness[20], Arrowheads[0.5], Arrow[{{0, 0}, {1, 1}}]}, PlotRange -> {{0, 1.1}, {0, 1.1}}] Export["Arrow.eps", g]; ...
4
votes
2answers
111 views

Stretchable parentheses in text labels in Graphics

I'm trying to annotate a plot with points of the form $\left(\frac{1}{2},\frac{1}{2}\right)$; my problem is that the parentheses don't stretch to cover the fraction. I think that what I want to do is ...
0
votes
1answer
86 views

Find the Hill Estimator of “alpha”

I am trying to get the Hill estimator of "alpha" and the Hill-plot graph from a standard Cauchy distribution. So, how to get it? Thanks! Hill estimator can be outlined as follows. Generate ...
0
votes
0answers
43 views

Problem with a BarChart

I have problems with a graph, First: I am using data from a list, before I used RamdomReal, but I can't get it to work. Second: the statistical data doesn't appear in the graph, I do not know why. ...
2
votes
0answers
40 views

Why is dual-scale plotting so complicated per the official function?

The page "How to | Generate Plots with Two Vertical Scales" describes an official recommended way to plot two functions with different vertical axis scales. The solution, in my opinion, is ...
3
votes
2answers
73 views

How to display label text outside plot range and enable PlotRangeClipping?

I have been trying to modify a clipped graph by adding a text a label outside the frame, with no success so far. Code for contour per request to get the rest of the ...
0
votes
1answer
111 views

Ugly text in shaded graphics [closed]

I've looked around but can't find the solution to the following problem: Why is text so ugly in shaded graphics (ContourPlot, etc.)? Here's an illustration: ...
2
votes
1answer
49 views

Shaky Point[] objects in simple animation

I'm making a simple animation of wave motion. Each point is supposed to be moving exactly along a circle, and for some reason the purple & orange points seem to shake as they rotate about their ...
30
votes
11answers
3k views

Plotting the Star of Bethlehem

Christmas is around the corner! In preparation, consider the polynomial f[x_,y_]:= 1/10 (4 - x^2 - 2 y^2)^2 + 1/2 (x^2 + y^2) and define $r=(f_x,f_y)$ using the ...
1
vote
2answers
77 views

Different Plot Legend Style in the Plot with same code and How to make it good-looking inside the figure

I use Plot to draw two figures and combine them in one figure with the following code. ...
6
votes
2answers
183 views

Opacity gradient in custom legend

I need to produce the legend of a plot which encodes a color gradient together with a color gradient. In particular, I would like the image bellow to have the blueish edge faded and the redish solid: ...
1
vote
0answers
37 views

Graphic drawn using Drawing Tools will not save properly

I have two very stubborn arrows that show up as green in a.png file I have saved (by right clicking and selecting 'save selection as') even though in the notebook interface I have edited them to be ...
-1
votes
1answer
62 views

Combining multiple graphs in one photo without consulting external programs [closed]

I want to add many plots from Mathematica into one picture and export as a PDF. Usually I select the plot and copy it as an image to Word, however the image reduces the accuracy of some plots. How can ...
2
votes
2answers
108 views

Color Gradient for Several Plots

I have a Table of Sin[nx] functions where n is an integer. Now my issue is that I have been ...
2
votes
1answer
96 views

Application of Options for Graphics [closed]

I have the code Graphics[{Dashed, Green, Circle[{0, 0}, .4], Black, Circle[{0, 0}, .5], FaceForm[], EdgeForm[Black], Rectangle[{-1, -1}, {1, 1}]}] Which ...
1
vote
0answers
40 views

Exporting a .gif from 3D graphics while keeping the ability to manipulate [closed]

I am aware of a related question but I think my questions is slightly different. I have a table of 3D graphics (as an example you could think of a ball or torus and each element of the table is a ...
1
vote
1answer
56 views

Get coordinates of Translated Polygon

I have many polygons of the following form that I wish to do more complicated processing and analysis based on it's updated location (such as relationships between geometries). ...
7
votes
4answers
721 views

Drawing hollow disks in 3D with an sphere in center and small spheres on the rings

I was trying to draw the following logo of an atom using Mathematica, but I could only figure out how to draw intersecting ellipses, not a nice logo like below. Do you have any idea? And is ...
3
votes
2answers
343 views

How to extract a picture from Manipulate, without frame, sliders and axes?

I would like to extract some pictures from a Manipulate that uses a slider, but when I do it from the pop-up menu, I get all the frame and slider with it. How can ...
4
votes
3answers
253 views

How can I add a few specific mesh (altitude-like level) curves to a plot?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green ...
1
vote
0answers
68 views

How to numerically solve this partial differential equation and plot the output? [duplicate]

Using Mathematica, I would like to numerically solve the following partial derivatives equation : $$\tag{1} \frac{\partial^2 \Phi}{\partial T^2} - \frac{\partial^2 \Phi}{\partial X^2}- \frac{\...
1
vote
3answers
113 views

plotting plot $(- \infty, x]$ for any arbitrary $x$? [closed]

is it possible to plot $(- \infty, x]$ for any arbitrary $x$ on wolfram online? is it possible provide commands? I am trying to understand the concept of Vapnik-Chervonenkis dimension.
2
votes
1answer
83 views

How to draw this figure and extract information out of it?

Consider a unit sphere. The cube of the maximum size that can be inscribed inside it has the vertices $ (\pm1, \pm1, \pm1)/\sqrt3 $. A tetrahedron can be created from this cube by choosing appropriate ...
4
votes
3answers
188 views

How to draw borders around tiles of the same color?

I'm having difficulties with a project to show random tiles with a few random colors. Here's the code that I need to modify: ...
4
votes
3answers
396 views

How to draw random colorfull domains in a plane?

I'm trying to produce some graphics like the one shown below, with a few adjustable parameters to change the number and size of cells. The cells positions, sizes and colors should all be random (size ...
1
vote
1answer
53 views

How to show a line in a Manipulate plot?

I'm trying to display a Graphics line alongside my Manipulate plot but I can't seem to do it because the Graphics and the Plot do not show up together. Basically, I want to show this line ...
2
votes
1answer
78 views

Circle with Offset radius is not round

I want to draw some circles with different radius, and I want to keep them to be circle in any AspectRatio setting. I found that Offset needs to be used in radius ...
5
votes
3answers
178 views

2 issues with ListDensityPlot

I am using Mathematica Version Number 12.0.0.0 Platform: Microsoft Windows (64-bit) The FIRST issue is that the ListDensityPlot is not plotting values of x[Tfinal] ...
7
votes
2answers
304 views

How do I place the Clock arrows inside this clock face?

I am trying to program a clock, I have the face I want and the hands but I can not seem to put them together so they work..... ...
0
votes
0answers
87 views

About using C# to load a package in a Mathematica .m file

I tried to load my .m file in the following way; ...
1
vote
0answers
60 views

Exported plot range of PNG not displayed properly

I am tring to export the plotted graphics as PNG, but its range is not coming properly: ...
0
votes
2answers
52 views

Relative error with bands plot

I have 2 sets of data imported from excel file, Let say A = 20 21 22 ... 30A B= 0 1 2 3 ... 10 I want to plot A with a relative error of 10% ...
5
votes
1answer
184 views

Find the coordinates of a hand drawn curve

Imagine I have saved a hand drawn curve as a jpg file. I want to be able to enclose it in a box and read off coordinates of the points that lie on the curve. One way is to click on a point and get the ...
0
votes
1answer
51 views

Frame around text or MaTeX? [duplicate]

This seems like it should be easy, but I can't figure out how to do it or any documentation of it. How does one add a frame (not an outline, but a frame) around Text...
2
votes
0answers
34 views

Need to determine turn in Connect Four based on mouse clicks (Mathematica)

I am making a connect four game and I need to figure out which graphic to use (red or black) by how many times the mouse has been clicked. So I need a counter for mouse clicks. That way I can make an ...
1
vote
1answer
104 views

How to mark a point on a graph?

So I'm obtaining the following graph: ...
5
votes
3answers
259 views

Plotting a normal curve over a histogram

I am teaching a basic introduction to normal curves, and the textbook introduces the topic with the idea of rolling five dice and recording the sum. Do this many times and create a histogram of the ...
1
vote
2answers
39 views

Graph of the linear fit with the experimental points of different colors and numbered

I would like to graph the following points and their respective line of fit on the same graph, but I would like to know if it is possible that the points are colored with different colors just as in ...
8
votes
0answers
123 views

Why 99.998474% instead of 100%?

I want to export a red square to the SVG file Export["red_square.svg", Graphics[{Red, RegularPolygon[4]}]] I noticed that in the exported SVG file, the ...
0
votes
1answer
121 views

Adopt Mathematica codes for circumscribed and inscribed ellipsoids to related sets

Users Daniel Huber and Dominic have provided an interesting answer each to the question JohnEllipsoids of constructing circumscribing and inscribing ellipsoids for a certain three-dimensional convex ...
6
votes
2answers
160 views

BarChart - Maintain ChartElementFunction when changing PlotRange

Here is a BarChart of some data ...
0
votes
0answers
28 views

Parametric plot gives good graph for x variable range 0 - 10000 but fails to plot for 1 — 10000

Please explain why pF4 provides a good graph while pF4a, pF4b give nothing ... All I do is change the range of variable x from 0-10000 to 1-10000 ...
1
vote
1answer
51 views

How can I make this background white and stop it being “light red” as some kind of default? [closed]

This Graphics[Square, Background -> Yellow] yields what it should do, namely: But when I try to change the background to white, by going ...
7
votes
3answers
426 views

How can I put the edge of a rectangle inside it rather than outside it?

Problem: when I draw a rectangle and put a coloured edge around it, the displayed edge is centred along the nominal edge and if it follows the same course as one of the axes then it does not show up. ...
5
votes
6answers
555 views

Representation a matrix as a colored square shape

I am sure that I have accidentaly seen before a way to construct a square shape corresponding to a matrix. For example if we have a 5*5 matrix: ...
3
votes
3answers
204 views

Assign a color to VectorPlot

I want to set all the lines in a VectorPlot a specific color, like Red. I am using some of the new options for VectorPlot as my code below illustrates. Using VectorColorFunction -> Red does not ...
0
votes
1answer
71 views

Evaluate analytic solution of the function [closed]

Here, i have plotted a function and i would like to print the y coordinate values from the plot for the x-coordinate given below. Coordinates in the sequence that every fourth y-coordinate should be ...

1
3 4
5
6 7
80