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
3
votes
0answers
56 views

Why does exporting a plot in raster graphics formats add a red background?

Bug introduced in 12.0 or earlier and persisting in 12.3.1 I've generated a Mathematica plot. When I right-click it and save it in a SVG file format like PDF or EPS, it looks great. (Unfortunately, I ...
0
votes
1answer
71 views

How to check numerical values on a plot? [closed]

Suppose we have the model: ...
1
vote
0answers
53 views

Render image sequence in .png with trasparent background in WM

I make the premise that I am a newbie to WM. I need to render a sequence of 2d graphs in .png format with transparent background, the function depends on two variables that for simplicity I will call &...
0
votes
1answer
57 views
0
votes
1answer
45 views

2 equations 3 unknowns. Implicit 2D Plot?

I have a hopefully simple question which I could not find any solution to yet: With two equations in three unkowns x,y,z I would like to plot their solution in x,y space. I cannot get rid of z ...
0
votes
0answers
57 views

Table is not a Graphics primitive or directive [closed]

I am trying to create a manipulate plot for all possible polarization states of light. I am getting the error Table is not a Graphics primitive or directive. Here ...
0
votes
1answer
72 views

Plot coordinates from latitude and longitude pairs in Mathematica12

A duplicate question, but in MMA12, it have some bugs. ...
0
votes
0answers
39 views

Is possible to put multiple independent legends into Graphics?

In the following Graphics I'd like put on the left and below another legend where I indicated the scale of the plot: I tried to do this putting into Inset the command PlotLegends->{} but ...
2
votes
2answers
136 views

There is a way to put a legend into a graphics?

There is a way to put a legend into a graphics? For example, given the Graphics ...
1
vote
0answers
27 views

How to draw a line marking where each chapter occurs in a text? [duplicate]

I am performing a text analysis on C.S. Lewis's book The Lion, the Witch, and the Wardrobe. I have created the following analysis of textual occurences of Aslan or Lion, Peter, Lucy, Edmund, Susan, ...
1
vote
1answer
43 views

How put a value in a legend

I am trying to put in a legend a value calculated previously but as you can see by your self the output is so stranger. ...
2
votes
0answers
60 views

Bug with animation rate

I tried to introduce an decay to the rotation of an object in mathematica by tying the animation rate to the degree of rotation as in the picture below and it goes quite smoothly until it reaches a ...
1
vote
1answer
105 views

Lotka-Volterra in mathematica

I have to solve the next problem: We know that a=b=c=d=1 and x0=2,y0=3,q=0.2,On the t=[0,20] interval there is no fishing but on the t=[20,40] interval there is.Show the adequate trajectory(the first ...
0
votes
1answer
55 views

Represent the motion of a particle

I am trying to represent the motion of a particle along a given trajectory. So I defined the following functions ...
0
votes
0answers
64 views

How to Shape Text?

Imagine I have a certain number 23819657294172004194219023914217958273128471531429470113 If I convert it to a string with ...
2
votes
2answers
66 views

what happened to this graph with scale when using Show to LogPlot?

p1 = Plot[8 x^3, {x, 0.5, 3.5}, Frame -> True] p2 = LogLogPlot[8 x^3, {x, 0.5, 3.5}, Frame -> True] Both graph look fine. However, when trying to put them ...
5
votes
3answers
248 views

Filling in LogLogPlot

I have a function firsttempinterp[x] that I plot using LogLogPlot. I used Filling to fill a ...
1
vote
0answers
17 views

How can I combine Dynamic plots saved in named variables inside a DynamicModule?

I am creating a few separate plots that I want to be updated dynamically. I want to combine the plots so they are a single plot. Normally, I would use Show for this....
0
votes
0answers
42 views

Unexpected clipping of axes values in Plot

In working through Andreas Lauschke's extremely informative lecture series, in his lecture (#8) on Rarer Probability he provides the following code (not strictly contiguous and modified slightly to ...
5
votes
3answers
188 views

Is there an inverse function of LineScaledCoordinate?

I know a useful function LineScaledCoordinate through animate-point-going-around-a-triangle, so does it have an inverse function? ...
1
vote
1answer
92 views

How to color ListLinePlot with PlotRange constraint?

I would like to plot=ListLinePlot[...] a few lines and color them with some external data set. This can be done with a small trick ...
2
votes
2answers
181 views

Draw a (1/4) partial 3D cylinder in a quadrant

Here is a code to draw a full cylinder $\theta \in [0, 2\pi)$: Graphics3D[Cylinder[{{0, 0, 0}, {1, 0, 0}}, 1/2]] My question is that how do we draw a 1/4 of the cylinder, such that it only appears in ...
0
votes
1answer
35 views

Overlay line plot of function onto a grid of numbers

I have a simple table, laid out using Grid: Module[{n = 25}, Grid[ Table[RandomInteger[{1, 5}], {i, n}, {j, n}] ] The ...
1
vote
2answers
107 views

Drawing Axes on top of a Grid of plots

I have a grid of density plots, for example like this toy example ...
0
votes
1answer
73 views

Can someone please help me in breaking down what this code means?

I hope someone can assist me as I am pretty new to Mathematica and understanding the language is a bit of a hurdle. I am trying to rotate a plot of interlaced circles by some angle without rotating ...
8
votes
2answers
492 views

Make polygon rolling along a line smoothly

I'm making an animation of a polygon rolling along the X-axis, the labels should keep their orientation and float is not allowed. Now lack of transitional status, is there an simpler way to add a ...
13
votes
4answers
425 views

Group points which on several straight lines

I have some points, they are distributed on three straight lines, how to group points on the same line? I have tried FindCurvePath, but I got the wrong result. I ...
2
votes
1answer
53 views

Combining 2-D plots for different values of a parameter into 3-D plot

So I have a system of non-linear differential equations that depend on a parameter $ \mu $. What I'm trying to do is take the 2-D phase portraits for different values of $ \mu $ and combine them into ...
0
votes
1answer
51 views

quality when saving as PDF [duplicate]

...
0
votes
0answers
43 views

ListAnimate for Möbius band

I would like to use ListAnimate for this. I tried it and it did not work. ...
0
votes
0answers
32 views

Improve rendering of surface plot in Animate [duplicate]

It doesn't render the accurate image until the user stops the animation. I would like to have the accurate image in real time. ...
6
votes
3answers
318 views

How to add arc circular arrows in GeometricTransformation[]

I am using this code ...
1
vote
2answers
49 views

I need to make a Hexolnikov grid from a 2-D array AND in the row and column refer to the corresponding hexagon by painting over it

I'm new to mathematika. I need to access the hexagon by the index of the two-dimensional array that I set. This hexagon needs to be painted over, I was able to find how to set the grid only with a one-...
0
votes
1answer
57 views

How to combine MeshCellLabel with Placed?

I would like to draw a line between two points and place a label "label" at its center, above the line. It would be also useful if this label remain parallel to the line when rotating the ...
1
vote
1answer
50 views

How to put a label above a point of a line?

My intention is to put a line to points {0,0,0}, {0,0,1}, and {0,0,2} and make a label "...
13
votes
3answers
416 views

Animated bar chart race, a popular data visualization

Recently I see more and more data-viz called "Animated bar chart race". Some random examples, and note, how smoothly and organically everything changes in these videos.: https://flourish....
3
votes
1answer
55 views

Probably easy question: How to make the Text font in the subscript?

In the specific Graphic setting, precisely (somehow \ ( and \ ) are not shown properly below in Stackexchange window) Graphics[Text[Style["\ !\ (1234_L\ )",LineSpacing->{0,12}],{0,3}]] ...
2
votes
1answer
66 views

Defining function with arguments in a specific pattern similar to Graphics[]

I'm trying to define a function that is of this form: ...
11
votes
1answer
707 views

How to make a haunting ghost?

How to make a harmless ghost (one that looks like a flying bed sheet)? One can always make a Ghost Curve. Or one can define define a clever wiggly function with a random fluctuation. My initial guess ...
2
votes
2answers
143 views

How to ask Mathematica to plot a rectangular grid with red points on all crossings?

How can I ask Mathematica to plot a rectangular grid (similar to the attached picture) with those red points on all crossings?
2
votes
1answer
87 views

How to use Callout for points on Graphics objects?

Callout is a relatively recent functionality that is pretty useful to add custom labels to points and plots. A minimal example of it being used in ...
3
votes
2answers
115 views
0
votes
0answers
27 views

Use Graphics in a XM-Template

I'm trying to make a Form that outputs a few matrices, and I figured I'd use an XML-Template to format the output. Here is a minmal example of the problem. I'd like a Matrix output as in: ...
5
votes
2answers
160 views

Music animations

I've been tempted to use Mathematica to create some artistic musical animations. That is, if I have a music file, I want to be able to edit, for example, its waveform animation. For example, get ...
5
votes
1answer
154 views

Mathematica secretly plotting vector graphics outside the axis range

I have code to plot the zero contour of a function. This function is symmetric about the x=0 axis, but I only want to display it in the first quadrant. Additionally, I currently set up the axes as a ...
-3
votes
1answer
72 views

Combining a BubbleChart with a MatrixPlot

Is there a way I can combine a BubbleChart with a MatrixPlot? I already plotted a MatrixPlot ...
2
votes
0answers
53 views

PlotRange is not applied after text image conversion is moved

I converted the text image using Rotate and Translate functions. ...
4
votes
1answer
221 views

Writing a document-like Text

Imagine I have the following code Graphics[{LightBlue, Rectangle[], Black, Text["Hello", {.1, .9}]}] If I had more text to the ...
3
votes
2answers
159 views

MoleculePlot always returns an empty plot

MoleculePlot@Molecule["O=C(C1CCC1)S[C@@H]1CCC1(C)C"] This is a documented example usage of MoleculePlot, but it ...
0
votes
0answers
63 views

Ising Model 1D /Thermodynamics properties

I want to plot the thermodynamics properties of the Ising model like free energy, entropy, magnetization..etc., when h=0 ( no external field ) and when h= finite values For the energy as function of ...

1
2 3 4 5
82