We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1answer
68 views

Combine of a square and a parallelogram with GraphicsRow

...
3
votes
0answers
34 views

Extra Ticks in Chart Boxes? [duplicate]

Is there a simple way to clean up the overextending ticks and highlight the line intersections? ...
1
vote
0answers
60 views

unexpected color cycle

I had thought that the defaultColorFunctionScaling ofTrue should preclude this outcome, but I'm seeing it in a ...
0
votes
1answer
121 views

How to get Lissajous curve like the following gif [duplicate]

parameter equation $x= \sin(m t)$, $y= \sin (nt)$,(fix $m=13$, $n=18$ not to change) I need the picture show the generation of the curve.(start from one point to the final curve like you draw it ...
0
votes
0answers
56 views

Graphics from previous one without repeating the calculations

First of all, I will say that my Mathematica knowlodge is very limited. Ok so I want to create a video of a fractal being constructed. I generate the fractal by writting consecutive natural numbers in ...
0
votes
1answer
49 views

Graph of a solution for the different parameters

I want to plot for Sol for the different values of s=0,1,2. can some one guide ...
1
vote
1answer
40 views

Two png images aligned in one column with vertical spacing zero and left aligned

I have the following two png images which I want to left-align in one column with zero vertical spacing, retaining their original size (which is for both the same, ...
0
votes
1answer
174 views

How to change colors of 3D parametric plot

I have a 3D iterative plot, where each iteration (1,2,3) is represented by equation of piecewise linear function. I am trying to change the colors of plot, to get for every iteration (piecewise ...
2
votes
1answer
56 views

Questions about higher order Bézier Curves

I can generate the same Bézier Curve using my own code as the curve generated by Mathematica's function BezierCurve, but when I increased the order of the curve, it ...
2
votes
1answer
105 views

Plotting 2-dimensional polytopes embedded in n-dimensional Euclidean spaces

My minimal working example is Graphics3D[Polygon[{{0, 0, 2}, {0, 3, 4}, {0, -1, 2}}]] How can I plot the polygon I have listed above on a 2-dimensional plane (...
0
votes
0answers
24 views

Parametric Plot EPS Export Jumping Frames

Observe the following Wolfram Mathematica (11) code. Essentially I'm just creating a parametric plot with another parameter a to be varied with time and then ...
2
votes
1answer
94 views

Export Parametric Plot as PNG with no background

How do I export a ParametricPlot as a png image with no background? For example, my exported image look like this: But it has a white background. I need that white background to be a completely ...
4
votes
0answers
73 views

how to produce animated SVG

Let's say I have some animation stored as a series of frames in list, and I would like to export this so I can show the animation on a web page. I can produce an ...
6
votes
3answers
203 views

how to generate random convex quadrilaterals using circles (actually inscribed within circles)?

I would like to generate random convex quadrilaterals using circles, my tutor has suggested to using randomreal to generate 4 numbers and scale the sum of them to 2pi, and then use trigonometry ...
1
vote
1answer
65 views

Smoother cones and better 3D arrows in Graphics

I have this code: ...
1
vote
1answer
117 views

Numeric data from a color map

Importing the following image (without a scale): and knowing the extreme temperatures, is it possible to obtain the graduated scale? Also, it would be interesting to get the temperatures of all the ...
2
votes
0answers
31 views

Why is ColorFunction called more than once for every color cell

I was trying to use a custom ColorFunction with Raster and I noticed it gets called seemingly a random number of times for each ...
0
votes
1answer
76 views

RepeatedReplace (//.) not working as expected within an expression in a graph

I'm plotting a tangent line to a region and, depending when I evaluate it, I get inconsistent results. I want to use the first way of doing things for flexibility but it doesn't seem to be working. ...
7
votes
2answers
353 views

How to color nodes in a adjacency graph with different colors?

Let us consider a binary adjacency matrix $M$. We want to color the nodes of corresponding adjacency graph with 4 different colors such that two adjacent nodes have different colors. How to find 4 ...
0
votes
2answers
161 views

How to generate a Bézier curve using 4 points(arbitrary), without using the built-in function of Mathematica?

How to generate a Bézier curve using 4 points(arbitrary), without using the built-in function of Mathematica? The main point is that we do not use the built-in function in Mathematica, instead use a ...
1
vote
1answer
75 views

Why does trying to plot the solution to this system of ODEs this way lead to errors?

I would like to plot the curve $\alpha(s) = (l(s), h(s))$, where $l$ and $h$ are the solutions to the system $l'^2 + h'^2 = 1$ and $l'h''-l''h'=h'\tan(l)$. Here's what I tried: ...
0
votes
3answers
147 views

Can `PlotRange` of x-axis automattically determine y range?

PlotRange can specify the plotting range in each direction. Let's say you have a large set of data and you may want to plot parts of it by specifying the ...
0
votes
0answers
77 views

CUDAQ::internal: CUDALink experienced an internal error

I have Mathematica 11.0.0 installed on Windows 10, with an NVIDIA GT 630M GPU on my Dell Inspiron. I am trying to run the CUDA examples in the Help files. All of the setup functions for CUDALink work ...
0
votes
1answer
58 views

How to make object to be transparent?

code follows Graphics3D[{EdgeForm[None], Import["ExampleData/seashell.stl", "GraphicsComplex"] } ] can i make the seashell to be transparent? example from ...
0
votes
1answer
77 views

Animate a graphics with derivative function that gathered from NDSolve

I'm defined W[t] and Q[t] like below. This code is an example that shows my problem. My real code is very long and complex that i cant make change in it. I solved my differential equations but sum ...
2
votes
2answers
104 views

Epilog and Prolog not ploting for small PlotRange

I have an automated process that produces plots that will be on a y-axis range of somewhere between zero and 1. I need to highlight certain bands in the plot that are a result of calculations in the ...
4
votes
2answers
285 views

How to graph multiple lines of the same color that each contain multi-colored points

I need to make a graph with multiple lines and points. Each line contains 3 points that should each be colored black, yellow, and red. The line should be a neutral gray. I managed to create a graph ...
2
votes
1answer
72 views

Unexpected text alignment behaviour when using a SwatchLegend with Inset

If I create a legend panel with a label which includes the new line escape character "\n", e.g. ...
3
votes
2answers
293 views

Stacking plots over common X axis

Is there a good way to stack plots that share a common X scale, but not a common Y scale? A toy example: ...
3
votes
1answer
72 views

TimelinePlot; How to control what happens when the mouse hovers over an entry?

When you hover over an event in a TimelinePlot the border around the event thickens and a Tooltip message gives the date. How ...
6
votes
1answer
77 views

TimelinePlot with data above and below the line

I have to do a talk about how simulation and testing are coming together. So I have been developing a historical list of events in simulation and events in testing (please add to them if you wish). ...
0
votes
0answers
53 views

FacialFeatures is not a Graphics primitive or directive

This is my code, and he work perfectly, except "Graphics", its not showing the rectangle on my face. The message is: FacialFeatures is not a Graphics primitive or directive. Can someone help me? I ...
1
vote
0answers
29 views

how to use interpolating functions to smoothly paint a polygon? [duplicate]

consider 4 different colors on the nodes (with different parameter values) how to interpolate when the color values are given on the nodes using the constructed interpolation functions to paint the ...
1
vote
0answers
28 views

Why does dragging a point with a Tooltip interfere with MousePosition[“Graphics”]?

Consider the following toy example of EventHandler used to implement dragging a point around in a Graphics: ...
3
votes
1answer
75 views

color interpolation using interpolating functions on a quadrilateral

How can I use the interpolating functions I constructed for the four nodes of a quadrilateral to use as parameters to smoothly paint the edges of the quadrilateral when 4 different color values are ...
2
votes
1answer
65 views

Using Mouseover to change colour of the FilledCurve

I would like to change colour of the FilledCurve and display little table when mouse pointer goes over the area between curves. My code is shown below ...
5
votes
2answers
173 views

Plot values of matrixplot as well as the matrixplot itself inside Manipulate [duplicate]

Given a MatrixPlot inside a Manipulate, say some $M(t)$ where $M_{ij}$ real for all entries, is there a way to show the values ...
0
votes
0answers
21 views

Polynomial interpolation using Wachspress construction to interpolate color on a quadrilaterial

My questions is how to use Rational Polynomial interpolants to paint the edges of a quadrilateral smoothly using 4 different colors. My tutor has taught this two-variable version of Pade expansion ...
2
votes
1answer
124 views

ColorData input arguments not clear

A question about ColorData input arguments. I want to color a point in a graph I have, but I don't want to use the built in colors (orange, green, blue etc) I saw someone coloring a point using ...
11
votes
2answers
375 views

Making an interactive visualization of the eigenvectors of two-dimensional matrices

I've recently stumbled upon this very nice interactive visualization of eigenvectors of two-dimensional matrices, and how powers $A^k$ act on various vectors. How can this sort of visualization be ...
2
votes
2answers
168 views

How do I define and plot a function involving random variable? [closed]

I am struggling to define and and plot the following function: $\qquad \sin(x) + 0.15\,u$ where u is a uniform random variable in the range [-1, 1]. How can I define such a function and then plot ...
1
vote
1answer
59 views

Error with VectorPlot [closed]

...
1
vote
2answers
69 views

How to color the nodes of a quadrilateral polygon

say we have the list of points a = {{1, 1}, {2, 1}, {2, 2}, {1, 2}, {1, 1}},it is a simple square, how can we make color the nodes( in which that the nodes and the ...
0
votes
1answer
84 views

Getting a Dodecahedron Graph to work in Manipulate [closed]

Right now I am currently using a grid graph for a "shortest path model", but ideally, I would like the shortest path model to work on a pentakis dodecahedron or rhombic triacontahedron. I will say I ...
4
votes
2answers
224 views

How to get this Europe map using Mathematica?

I need to generate a Europe map with given lattitue limit and longitute limit as shown in the attached figure. I want the map to be more detailed and colorful (attractive). Furthermore, if I want to ...
6
votes
2answers
308 views

Unknown (Graphics) Pleasure

I want to make a program that produces images like this one What I have tried... ...
2
votes
1answer
62 views

Create a Manipulate with a control to select Circle or Disk

I need to create a Manipulate that shows a circle or disk with a control to select whether it is Circle or ...
0
votes
1answer
53 views

Adjusting figures in Grid?

First figure: ...
0
votes
1answer
129 views

Drawing several 2D vectors in one plot with labeled axes [duplicate]

I want to draw vectors just with one plot. Also, I want to label the axes. Can anybody show me how can I do it?
2
votes
0answers
84 views

How to draw such boxes in Netron?

How to draw a box like this: This was drawn by https://github.com/lutzroeder/netron My attempt: ...