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
29 views

Interactively extracting arbitrary portion of elements from a 2D list

I have a 2D list which can be plotted as follows: Image 1 Based on the plotted image, I would like to select some of the shapes on the image and extract the data for further analysis, for example, ...
3
votes
1answer
75 views

How to plot a Histogram and compare with a particular probability density function PDF

I would like to know how to plot a make a comparison between a histogram and a set of random data, I have the following probability density function (PDF) which is given for this problem. I can ...
2
votes
1answer
60 views

Vector field Stream?

The following graph shows the vector plot. How can I plot the solid lines which represents how the vectors are spatially varying and both on the same graph (vector plot and stream field)? ...
2
votes
1answer
65 views

What is meant by “curve” in the Mathematica documentation? [closed]

My system: Mathematica 11.2 I am missing something major in how to read the on-line help. Quoting from Mathematica help: Arrow[curve, …] represents an arrow ...
1
vote
1answer
41 views

Combine a List of Plots: Using MapThread with Show [closed]

I have a list of graphics p1 = Plot[x Sin[x] - 1, {x, -2.5, 2.5}] p2 = Plot[Evaluate[D[x Sin[x] - 1, x]], {x, -2.5, 2.5},PlotStyle -> Red] ListNew = {p1, p2}; ...
2
votes
1answer
65 views

Inconsistent Vector Plot over Contour Plot

I am trying to plot the gradient vector field over the contour plot of a function. While the demo function seems to work very well with the demo taken from How to use vector plot and gradient vectors?...
1
vote
0answers
38 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 <...
17
votes
2answers
431 views

Creating graph out of particles images

I have recently started learning how to use Mathematica's brilliant image processing tools, and the image I've taken as first example is the following (source): So far I've tried to first use ...
0
votes
1answer
42 views

An extraneous line appears in the printed version of a Mathematica-image in a pdf-document

My system/workflow Mathematica version 11 MikTeX 2.9: tex->dvi->ps->pdf->paper I have run into the following difficulty. I cannot tell whether the problem is caused by Mathematica, MikTeX, Adobe, or ...
0
votes
0answers
40 views

Discrete Sum of Function over a Region

I might have completely missed something in my search. I want to discretely sum over a function, $f(x_i,y_j)$ multiplied by some other function $g$ over a general region $S$. $$\sum_{(x,y)\in S}f(x,...
1
vote
0answers
92 views

Calculate the intersection points of a line and a parametrically defined 3D surface

Thanks to Henrik Schumacher for advice to simplify the sample code: I would be grateful for any pointers on the following issue. A line from an external point intersects the surface at 2 points (...
6
votes
3answers
1k views

Polygons crash kernel?

Having some problems Generating random Polygons and then filtering by Area, specifically filter out degenerated polygons with ...
5
votes
1answer
56 views

How to construct BezierFunction for BezierCurve with npts>4 and SplineDegree -> 3?

I would like to use BezierCurve with npts=7 and SplineDegree -> 3 and access its BezierFunction. This code helps: ...
10
votes
1answer
151 views

Why does BezierFunction not follow BezierCurve at npts>4?

This example: ...
6
votes
3answers
696 views

How to count points under the curve?

I need a formula to calculate how many points are there under the curve $y=x$.
2
votes
1answer
56 views

PlotMarkers problem on some stylesheets

Sample data: ...
2
votes
1answer
55 views

How to plot a multivalued function in $\mathbb{R}^2$ using Mathematica?

First of all, consider the cubic equation $$x^3 + a = x. $$ Using Mathematica is easy to find real solutions of the above equation, ...
0
votes
0answers
34 views

Export of a graphics object with a fixed size

I am trying to generate a figure produced by Graphics command and export it to a pdf file having a fixed width. I followed the answer in these links, 1 and 2. These ...
7
votes
2answers
112 views

Exporting image and scale

Let us say I have a plot, for example that one: Plot[x^2,{x,0,5},AspectRatio->5] and I would like to export it as a PDF in such a way that if I print the PDF ...
2
votes
1answer
68 views

Remove the background color

How do I remove the background color from the drawn graphic? When I insert the Mathematica-derived plot image (.emf) into the Word, I always find a white background color. How do you make these ...
5
votes
0answers
77 views

How to export high dpi PDF graphics at a low physical dimension with small file size?

Exporting PDFs While it is seemingly obvious how to export higher resolution pdf vector graphics: https://mathematica.stackexchange.com/search?q=pdf+export+high+resolution There is nothing to be ...
4
votes
2answers
121 views

Align y-Axes in Overlay plot

I learned about how to plot two datasets in a single plot with two y-axes by using Overlay as has been done in one of the answers in this question. Now, my ...
2
votes
1answer
45 views

How to join two graphics generated from paired-points lists?

The Fig.1 and Fig.2 are generated from two lists, Fig.3 is joined and edited from Fig.1 and Fig.2 in Adobe Illustrator, the codes and figures as follows. I want to know how to get Fig.3 by Mathematica ...
2
votes
0answers
41 views

Encoding spatial data in Mathematica

I am doing some experimentation with machine learning and robotics, and want Mathematica to be my primary platform. For it, I need to represent a room with some obstacles (circles) and a goal (square)....
7
votes
4answers
179 views

Construct, in some manner, a four-dimensional “RegionPlot”

Let me abuse some Mathematica notation and formulate the following "command": ...
1
vote
0answers
42 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 ...
2
votes
1answer
36 views

Labeling points in GeoGraphics

I have the following code for labeling certain points at different latitude-longitude locations across the US stored in USLatLong. ...
1
vote
2answers
90 views

How to position vertices according to clustering coefficient in a nice way?

I have a graph and I want to rank each vertex according to its local clustering coefficient. I have done the following: ...
5
votes
2answers
115 views

Add region constraint to Graphics

I would like to only show the part of Black circles within the Red circle. Can I do that with ...
3
votes
3answers
462 views

How do you create draggable points inside a graphic image?

I want to create a simple line with two points that can be dragged (one at a time), as in image below: How can I do that without using sliders, but rather dragging the points themselves. I suspect ...
1
vote
1answer
55 views

How to set the position of the axis label in program?

I have studied the relational contents through the webpage Placing x-axes label below rather than at end of axes, but not found: (1)How to put annotation on the left of y axis and display the graphic ...
9
votes
4answers
465 views

How do you glue a text to a point?

I have a point {0,0} which I call A, and a point {2,1} which I call B. I want to make an image that looks like the one below. When I resize the image I want the text labels to follow the points, so ...
1
vote
1answer
69 views

Graphical imperfections when plotting a fourier series

When running the following I get the plot below. I'm a beginner, can anyone suggest why we see those graphical imperfections in the plot? ...
2
votes
1answer
79 views

Why will points in the Epilog “get lost” when combining two plots using Show? [duplicate]

I need to mark four points in a single graph, math does it separately, but when I put together both graphs, two points of a line disappear, I really do not know why. ...
5
votes
2answers
234 views

Recolour existing plots

Context More often than not I end up doing plots one after the other so that I have a set of plots with the same colour style. When I want to make it more publishable ready, I would like to reassign ...
7
votes
4answers
259 views
0
votes
1answer
36 views

Increase thickness of joined ListLogLogPlot[] curve

Here is my code: ListLogLogPlot[{{10^1, 10^1}, {10^3, 10^3}}, Joined -> True, PlotStyle -> Thick] The ...
8
votes
2answers
222 views

Pairwise Scatter Plots with Histograms and Correlations

Has anybody written a function which can scatter plot data with histograms and correlations? Here is an example form MATLAB. This is related but does not print correlations. R has a similar function. ...
9
votes
2answers
731 views

How can I get edges to bend to avoid crossing?

I want to generate a layered drawing of the Hoffman–Singlelton graph. As an example of what I want, here is a layered drawing of the Petersen graph: Now if I right click on the output of ...
2
votes
1answer
52 views

How to add the peak labels to an FTIR spectrum?

I have tried to plot the next FTIR spectrum and add their respective peak labels using Graphics and Show, but I think this doesn'...
0
votes
0answers
145 views

Aligning plot axes of multiple figures results in different size of the FrameTicks

I defined a new FrameTicksStyle, but their size is changed when more than one figure are stacked vertically. However, the size is accepted when figures are stacked ...
1
vote
0answers
41 views

How to scale the x-axis and y-axis non linearly, as per convenience? [closed]

Check the x and y axis. I want a command in which I can create such a plot.
0
votes
0answers
55 views

Problems plotting labels

When i plot labels on a graph, then the text "field" is much bigger than the text itself. It gives some problems for me regarding placing the labels properly. Can someone help me fix this? see code ...
0
votes
0answers
50 views

Mathematica Online and Exporting Animations

I am using the online trial version of Wolfram Mathematica. I have created an animation and I am trying to export this animation as a video. I have tried ...
3
votes
1answer
185 views

Graphical representation of connection of people

I want to make a graphical representation of the people with the location, but coding is a little bit challenging. Here is my input {Person,Location,Influences} ...
0
votes
1answer
37 views

Avoiding distinct background appearing behind plo label text

I keep getting a light background behind my text when I use the PlotLabels option (see picture below). ...
1
vote
1answer
47 views

Drawing Curve, Interpolating Points on a Sphere

I am implementing Lagrange motion of degree 6 in Wolfram Matematica, I have implemented everything and now when i came to an 'easy part', drawing part i am stuck. Which function could i use to draw ...
1
vote
1answer
42 views

Hide a part of a graph

How to hide a part of a torus. I mean in the following torus ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3+ Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] I want to hide the shaded part
4
votes
1answer
87 views

Improving identicon graphics

This question has two parts, a technical part about graphics, and a creative part. I'll accept answers primarily re the first part. The application is to come up with graphical identicons to ...
0
votes
0answers
61 views

Animated wrapping line and wrapping cylinder

I am trying to draw the following situation using any graphic program but I couldn't since I don't know how to make the animation. So your help is greatly appreciated. So my picture consists of two ...