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.

286 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
99 views

Increase vertex embedding distances e.g. scale VertexCoordinates

I currently try to make following graph more readable: ...
2
votes
0answers
59 views

Suppressing non-deterministic behavior in Image

The following issue is experienced in Mathematica 11.3 on Linux (debian 9) but I am pretty sure it was already present in version 10 on Linux. The expression ...
2
votes
0answers
117 views

Normal vector in discrete 3D object

Consider a large array(~42000,3): array={{x1,y1,z1},{x2,y2,z2},...,{xn,yn,zn}}; This array forms a certain shape, it may contain cavities or other ...
2
votes
0answers
65 views

Why doesn't the low-level box representation of a graph with VertexLabels use GraphicsComplex?

Compare following two low-level box representations of a graph without VertexLabels and one with VertexLabels set to ...
2
votes
0answers
244 views

Parametric Density Plot

I want to combine the features of the functions DensityPlot and ParametricPlot. That is, I have three functions $f(x,y)$, $g(x,y)...
2
votes
0answers
524 views

Export to PDF: DensityPlot & AllowRasterization->False

How to get production-quality vector graphic exported from Mathematica that looks like what is plotted in Mathematica. Example code: ...
2
votes
0answers
87 views

How does PDF export handle text alignment?

Context: In digging into How can I get Mathematica to not mis-align plot labels when exporting to pdf without rasterizing the text?, and getting an answer to How does pdf export compute the size of ...
2
votes
0answers
115 views

A list of Graphics Primitives

Is it possible to programmatically get a list of 2D and/or 3D Graphics Primitives? Edit: Indeed, there is an answer to this question here. It is, however, much focused on a function checking that the ...
2
votes
0answers
118 views

Exporting ParametricPlot to .pdf

I am trying to use ParametricPlot to produce some nice looking images of regions bounded by various curves. However, the plots look weird when I export them to .pdf. For example, I have tried plotting ...
2
votes
0answers
197 views

How do i make a barchart and listlineplot with two separate vertical axis?

I tried doing it with Overlay but the output is not a new graphics object and boundaries of the chart are overlapping. Is there a way to do this to get a new ...
2
votes
0answers
84 views

Transparency not retained Mathematica 3ds Export

I have a semi transparent 3d model that I have created in Mathematica and exported to 3ds, and obj file formats. Once I open the 3ds, obj files with blender or GLC Player, the models are not ...
2
votes
0answers
231 views

Extract points from ParametricPlot3D

I have this ParametricPlot3D ...
2
votes
0answers
231 views

Plots in a Grid: negative spacing and transparency

I am trying to produce a grid of color plots, where only the outer frame borders have labels, labeled ticks, and color bars. So the outer dimensions of all plots in the grid are different, because ...
2
votes
0answers
261 views

How to draw a color square from a spectral distribution?

I need to draw a simple square filled with a flat uniform color, from a given spectral function. The color should simulate as close as possible what an human eye/brain would see, if the light ...
2
votes
0answers
115 views

Label points on a map with one function call

I want to place labels on a geographic map. I can do this with individual points as in the code below ...
2
votes
0answers
82 views

What does the “ScalingFunctions” Method suboption of Graphics do?

Some plotting functions produce a Graphics with a "ScalingFunctions" suboption within the ...
2
votes
0answers
369 views

Ticks in scientific form with MINOR ticks shown

I have a LogLogPlot and I tried @Mr.Wizard relabel function mentioned in the comment. I have two questions: It worked in the second figure but the in the first figure the x axis the minor ticks ...
2
votes
0answers
208 views

Vector component plot as histogram

I am diagonalizing a real matrix as a function of a internal parameter. I can plot the spectrum of the system as a function of this internal parameters. How can I plot now the eigenstates components ...
2
votes
0answers
58 views

How to implement reusable graphic components having stable line thicknesses?

IMPORTANT: This post is a follow-up to Scaling edge thicknesses, and in particular to the accepted answer in that thread. Basically, I'm trying to use the idea given in that answer to implement 2-...
2
votes
0answers
178 views

ElementMesh (rendering?) issue

The appearance of the following ElementMesh is bad as you can see for example on the inside surface of the shell. The same problem happens converting to a ...
2
votes
0answers
428 views

Copy/Paste of a plot leaves whitespace

I'm trying to copy Mathematica figures into word, but when I do, I get tons of extra white-space for some reason. Either standard ctrl-c - ctrl-p or "copy graphic" does this. I understand that I ...
2
votes
0answers
78 views

Why is an imported plot different from the saved one?

I have a question concerning the importing of previously saved graphics. So I drew a plot in Mathematica and saved it by right clicking on it and saving it ("save as..."). When I open this (.pdf) ...
2
votes
0answers
363 views

How to add a Bar Legend to a density plot over the surface of a sphere?

I have a function with variables (theta,phi) the spherical coordinates. I want to represent it as a density plot over the surface of a sphere. following an answer to a previous question Density ...
2
votes
0answers
68 views

ListPlot with conditions Part II

In a previous post Part I @Julian S proposed an interesting method in order to segment the data. A copy of the data file can be found here: data. I know that I should provide a minimal working example ...
2
votes
0answers
941 views

Compact Map of USA with Alaska and Hawaii shown under California

Is there a more efficient way to include Alaska and Hawaii on a compact US map than the combination of the three GeoGraphics with Insets shown below? ...
2
votes
0answers
137 views

Attempt to Run[“inkskape”] fails

I wrote a little script to convert various graphics files (.ps, .eps, .pdf) to the raster ones (.png). Export[out, Import[in], ImageSize -> size] fails for some ...
2
votes
0answers
112 views

Graphics always rendered twice with SimpleFrontEnd example?

I am looking at the Java SimpleFrontEnd example provided by Mathematica. Everything goes well except it always renders graphics twice. Can anyone help me with this?...
2
votes
0answers
415 views

Read in Bézier curve from SVG file

I am trying to do some calculation of some SVG file. After reading in with Import["filename", "XML"] and some easy operation, I can get the string of the Bézier ...
2
votes
0answers
198 views

How can I fix my keyboard-free panning?

I'm trying to make a graphics display on a touchscreen device in Mathematica. This means that there will not be a keyboard available for functions such as Panning and Zooming. Because of this, I have ...
2
votes
0answers
175 views

Mathematica does not export Turkish characters in a Graphics expression

When I export the following Graphics expression as a PDF (or EPS) file, the Turkish characters ü and ç do not appear. ...
1
vote
0answers
45 views

RegionPlot outputs System`ReduceDump`

I'm using Solve[] to find the solutions to a system of equations, then checking their stability in a Hessian using ...
1
vote
0answers
34 views

Custom arrowhead will not align properly

I am trying to put a custom arrowhead on an arrow I am drawing in a plot. My problem is that the (thick) line of the arrow is showing behind the arrow tip. So it seems like the arrowhead is aligned ...
1
vote
0answers
39 views

How to set the thickness of plot ticks?

I want to draw a plot with specific ticks. So I added the Ticks property. Now, I also wish to enhance the ticks, so I tried to manipulate that using ...
1
vote
0answers
43 views

How do you define the domain and range of the variables for a plot?

How do I define the domain to be only reals and the range to be only complexes? Everytime I plot using ComplexPlot[], I get a C->C function so there are basically too many variables to plot and I ...
1
vote
0answers
18 views

How to generate a region with a finite width/height on say $ y $-direction, but infinite on $ x $-direction?

I want to use such a region as an Epilog in other figures. I have tried with HalfPlane, thinking ...
1
vote
0answers
24 views

Combination of Left alignment and Rotate messes up Automatic PlotRange

In the following code, left-aligning the inset AND rotating it seems to completely mess up the Automatic PlotRange. Is this intended behavior? If it's a bug, is there a workaround? 12.1.0.0 on MacOS ...
1
vote
0answers
22 views

Graphics3D insert a object at specific point and rotation

I am struggling in adding an object to a Graphics3D and instert it at a scpecific position and orientation that will change later with manipulate. I have tried with Rotation function but with not much ...
1
vote
0answers
24 views

Problems exporting graphs with descriptions to raster image files

I'm generating graphs with descriptions for upload to a website that only accepts raster image files. I can produce what I'm looking for in Mathematica 12.0's font-end using either ...
1
vote
0answers
51 views

Great circle on a sphere does not show up perfectly when looking at it head on

The following code produces the following out. What's the reason for the great circle to be broken up around the x-y plane? ...
1
vote
0answers
65 views

Reversing x-axis scale in ListPlot3D

I am trying to reverse the x-axis using ScalingFunctions but it's not working. I have a 3D plot with x, y and z scale in increasing order, but I want the x-axis to ...
1
vote
0answers
68 views

How to draw sketches of objects using lines (curves) only

Update Thanks for your comments, now I see that it's not easy to have 3D graphics in vector form. This is fine though, because the major reason that I'd like to do it in mathematica is that I'd ...
1
vote
0answers
36 views

ListSliceContourPlot3D plots Blanks with List1 and plots perfectly with List2. List1 == List2. Mathematica Version 10.4

I'm trying to do ContourPlots using the Function ListContourPlot3d. I have generated List1 and List2 using the following code. Here is the preliminary code to generate List1 and List2. ...
1
vote
0answers
54 views

Image option is initialized when a graphic is in { }

It is helpful(necessary)to read the following before proceed: view is not fixed completely regardless of vewpoint I found that, if a graphic code is surrounded by { }, the output becomes as if the ...
1
vote
0answers
60 views

Combining MeshRegions of generated 3D shapes and RandomPolygons

I am interested in generating 3D a joint BoundaryMeshRegion or a MeshRegion from different shapes and polygons. This works for <...
1
vote
0answers
71 views

Tools that can convert mathematica images into tikz or pgf code to import to latex?

I have learned about Mathematica2latex from some websites, I don't know where to download it and how to use. Is there any other tools that can convert mathematica images into tikz or pgf code to ...
1
vote
0answers
60 views

Is is possible to plot a multilayer network?

I would like to generate and plot a network of networks, otherwise known as a multilayer network. That is, I have one network of type A nodes with type a links. I have another network of type B nodes ...
1
vote
0answers
106 views

Visualizing a huge weighted graph

Consider a weighted graph 'net': ...
1
vote
0answers
67 views

Plot labels disappearing

Using Mathematica 11.2 (Win 10), when the notebook containing the chart below is reopened the plot labels have disappeared. What's happening? ...
1
vote
0answers
94 views

Use country flag in chart style for a bar chart

I am creating a stacked bar chart from 2017 using the following data set ...
1
vote
0answers
32 views

Text misalignment in vector graphic format export

In converting a number of old notebooks into a format for e-readers, Mathematica has some issues with vector formats. SVG export would have been ideal to use, but the exporter fails to recognize, for ...