The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

How to increase the accuracy of a plot

I have the following code below: ...
3
votes
2answers
62 views

How can I plot two parts of Möbius strip bonding together?

How can I plot two parts of Möbius strip bonding together like the following picture? The parametric equations: ...
2
votes
1answer
57 views

How to force ListPlot to print the new curve while keeping the old one

I would like to create a graph using ListPlot which prints new dataset every time the button is evaluated (based on the value given in ...
2
votes
2answers
167 views

How to plot this group bar plot?

I want to generate a barplot with the following characteristics. There are 5 users in the system. Each user has a demand. There are 2 suppliers. Each supplier tries to meet user demand as closely as ...
1
vote
1answer
67 views

Mathematica only graphs the upper part of my cylinder

I have this code which first is supposed to make random points, draw lines through the points and then make these lines radical axes of cylinders. I have two problems with my code. First, it only ...
1
vote
2answers
137 views

MapThread conflicting with DynamicModule

Cross-posted: https://community.wolfram.com/groups/-/m/t/1625808 Answer posted on Wolfram Community I'm creating an interactive UI which allows the user to import data from a spreadsheet, perform ...
1
vote
0answers
44 views

Scale on one coordinate [closed]

I read many examples but I could not fix my code unfortunately. Can you please help me and correct the code to extend x-axes so I can see the picture better. ...
7
votes
3answers
113 views

How to convert a ListContourPlot into a primitive usable with Graphics3D?

Consider a dataset such as the one you can find here. Using ListContourPlot on this dataset we get something like the following: ...
3
votes
3answers
163 views

Cutting a section from a sphere by planes

I want to plot and find out the section of a sphere remaining after putting constraints in terms of cartesian planes. How it can be done? For example, if I have a sphere of $r = 1$, and I put the ...
1
vote
2answers
86 views

Preventing “-Graphics-” Output from ListPlot[] Command

Whenever I try to create a Graphics object in a Mathematica notebook, the output is always "-Graphics-". I have searched and found others who had similar problems, but attempting to implement these ...
4
votes
1answer
73 views

How to get point coordinates from a plot in Mathematica v11?

I have been using the points of Mathematica plots for more than 25 years and it suddenly does not work any longer in version 11: ...
11
votes
2answers
415 views

Is it possible to rotate the Isolines on a Surface Using `MeshFunction`?

This came up in a different context but some expertise in 3D surfaces or the graphic options would be appreciated. I'm trying to extrapolate the curves from any given surface and things seem to be ...
3
votes
2answers
110 views

Putting a vertical line in each Histogram using GraphicsGrid

I'm using GraphicsGrid to show several histograms. In each histogram, I would like to show 2 vertical lines on the 2.5 and 97.5 percentiles. If I had an isolated histogram I would use Line, and Show....
3
votes
0answers
60 views

Is there an easy way to slant / angled dividers in TextGrid or Grid?

Is there an easy way to add angled dividers in TextGrid or Grid. Consider the following: One fake way would be to use the ...
5
votes
1answer
131 views

How to have a different style for edges of a triangle

Consider the following triangle. Graphics[{EdgeForm[Directive[Thick, Red]], Gray, Triangle[]}] The EdgeForm is defining the ...
8
votes
2answers
404 views

Branching points detection in processed image

I want to get the branching coordinates from a computer-generated image like this one: After SkeletonTransform and Pruning, I ...
3
votes
2answers
145 views

Carnot cycle diagram

Note: I have adopted and modified code taken from Wolfram demonstration page. I want to achieve something similar to the following figure: I use the following code: ...
3
votes
2answers
385 views

“Graphics is not a Graphics primitive or directive.”? [duplicate]

I looked through the forum but none of what I've found is helping. ...
11
votes
1answer
182 views

Option Lighting in the Show function does not work

Bug introduced in 11.2 or earlier and persisting through 12.0 There are something wrong when I try to evaluate the example from Lighting Docs, here is the code: <...
3
votes
3answers
92 views

How can I put common frame ticks on the leftmost of a row of graphics?

I have a function which plots a response behavior of model variables holding a reference value constant (the green dot in the examples below) over a common PlotRange (achieved by plotting the ...
4
votes
3answers
268 views

Converting a list of colors into an image

I want to manipulate colors, and merge the resulting vector and rasterize it into an image, controlling the resolution of the pixel. E.g. I tried to: But what I would like to have is an image of 3 ...
8
votes
2answers
397 views

How do I remove artifacts from my ContourPlot3D Valentine?

My version (below) of the "Valentine Formula" that appeared in today's New York Times, has some ugly artifacts that don't appear in the NYT (Java) version: How do I remove these artifacts? ...
0
votes
0answers
23 views

exporting graphics has missing features in pdf format in 11.0.1

I am creating graphics with the following code ...
0
votes
0answers
21 views

Facing difficulty in placing the text In graphics3D

Question 1 I have a cube in which I have to represent the corner of the cube with some text. But I am finding difficulty in placing, I don't want It to be exactly on the corner, I just place in a ...
1
vote
1answer
134 views

Combining Graphics, Graphics3D, and ParametricPlot3D

I'm trying to generate a figure similar to the first figure of enter link description here, so I tried to draw a torus, a disk, and a tube which is tangent to the torus. The disk must be inside the ...
7
votes
1answer
277 views

Plot a point with two colors

I have a list of points that I plot with ListPlot. I want all the points to have two different colors like in the picture how can I do this with ...
1
vote
2answers
182 views

Converting 3d points into a density plot

Is there a way to convert an array of values $(x_i,y_i,z_i), i=1,\ldots,n$ to a density plot instead of a ListPointPlot3D? I don't know if this is duplicated, but ...
-4
votes
2answers
86 views

Wolfram|Alpha not able to graph sum_(n=0)^∞ (-(ExpIntegralE[-n, (-1 + n) Log[x]] Log[x]^(1 + n))"? [closed]

I know for a fact that nothing in my expression is wrong, then why cant Wolfram|Alph graph: sum_(n=0)^∞ (-(ExpIntegralE[-n, (-1 + n) Log[x]] Log[x]^(1 + n))) ? ...
2
votes
1answer
56 views

Adjust graphics output for exporting

(Code based on the answer of @kgrl in the question titled Adding Legend to PieChart). I have two cases that apparently should result to same image size. The first: ...
4
votes
2answers
201 views

How to reverse X-axis in Graphics?

The following Graphics[Circle[], Axes -> {True, True}, ScalingFunctions -> {Identity, "Reverse"}] doesn't work I need "minus" direction go to the right...
1
vote
1answer
48 views

Adding Legend to PieChart

Say counts = {0.18, 0.51, 0.31}; PieChart[counts, ChartLabels -> counts, PlotRange -> All, Frame -> True, FrameTicks -> None] I am completely ...
5
votes
0answers
89 views

Efficient Image Export [closed]

I am trying to export around 10000 plots from Mathematica in order to compile them into an animation with another program. Using the following, where "frames" is the list of plots ...
3
votes
4answers
94 views

Centering axes in a rendered Graphics expression

When displaying a scatterplot using Graphics, is there a way to use the automatic range for the x and y axes, but force the origin to be centered in the image? ...
2
votes
1answer
47 views

Constant disk size on GeoGraphics Image

I would like to know how to generate a constant disk size on a GeoGraphics image. Currently my code is something like this: ...
2
votes
1answer
107 views

Drawing Circle using Image[Graphics[]] - incorrect coordinates

I want to draw a circle with center {x,y} in an image. I use the following code: ...
2
votes
2answers
86 views

Different BoundaryStyle for different sides of a RegionPlot

How can one Define a function in the RegionPlot that gives different BoundaryStyle for different sides? I mean ...
0
votes
0answers
28 views

Plot markers overlying plot frame instead of underneath? [duplicate]

In the following plot the plot markers are overlain by the plot frame: ...
2
votes
2answers
460 views

How can I make a general plot like this in Mathematica?

I want to make two general graphics something like the following. I want to illustrate the approach to the function by means of a polynomial. I have tried the following. ...
5
votes
1answer
112 views

Randomly distributed circles inside an annulus

With the following code: ...
3
votes
2answers
72 views

Modify Axes Range

With the following code: ...
3
votes
2answers
85 views

Overlaying custom plotmarkers onto graphics primitives using Show

I have found the custom plotmarkers package developed by @Alexey Popkov extremely handy for makeing nice, accurate plots. However, I have run into a small issue that I am struggling to make sense of. ...
1
vote
2answers
110 views

Create a moving point along a parametric plot using Manipulate?

Assume that G defined by: G = {Sqrt[1 - x] + I Sqrt[x], Sqrt[1 - x] - I Sqrt[x]} I am trying to create a point that moves along the curves of G from x=0.01 to x=...
0
votes
0answers
6 views

Using manipulate in the plot of a function that depens on a FindRoot function [duplicate]

I've the following two codes: FindRoot[Abs[Uin*Sin[2*Pi*fin*T - (Pi/2)]] - 2*Ud == (Uin - 2*Ud)* Exp[-T/(c*Rb)], {T, 1/(4*fin), 1/(2*fin)}] And: ...
0
votes
0answers
56 views

Generate graphics lines from letters

I would like to convert a letter into a Graphics object, composed of a series of points (or lines). For example, I would like to convert "J" into a single series of points, which I can then join up to ...
8
votes
0answers
45 views

Styles inheritance stack for elements of a Graphics/GraphicsBox

You can skip to the bottom if you only care about the question. My original goal was to control FrameLabel color from a notebook level opposed to doing it ...
1
vote
1answer
64 views

combining three graphs

I want to combine three graphs ,one up and two down , I have problem making the whole graph appropriate I attach graph for the result I get so you can understand my problem I add a code of the ...
0
votes
1answer
36 views

How to close the contourplot3D from top?

I received a very nice solution by Chip Hurst to make my 3DContourPlots smooth and closed in here. Now I have another problem that is simpler but I still want to know the ideas of the others. The data ...
4
votes
1answer
62 views

Is there any way to turn Labeled[…] into graphics primitives?

I have asked a similar question before. In that question I pointed out that the following code does not work: ...
3
votes
1answer
186 views

Contour Plot: Selecting the contour line that crosses a specific point

I have a very complicated function $f(u,v)$ in the complex $u,v$ plane which has several contours with the same value $x$, so that when I draw a ContourPlot of the ...
1
vote
1answer
110 views

How to make the ListContourPlot3D smooth and closed?

I am struggling with making my plot in ListContourPlot3D smooth and closed. I have seen so many posts regarding the same issue but in other functions, the solution of which can not be applied to ...