Questions tagged [plotting]

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
36 views

How to save plots with opacity[0.5] with transparency?

How to save ParametricPlot with opacity[0.5] with transparency? When I save the image the transparency is completely lot. in both pdf and eps files. I use The following code for saving my parametric ...
0
votes
0answers
38 views

How to show the value of $ x $-axis based on $ y $-axis and saved into table?

I have a code here to calculate the value of y-axis of each partition based on mx. What I would like to do next is: To show the value of each x-axis from the ...
2
votes
1answer
42 views

Generating plot from a list of containing rules

Using Solve, I have produced the following list of solutions to an equation: ...
2
votes
1answer
107 views

How do I plot a definite integral on Mathematica?

I am not sure how to put this in good format, but I want to plot this on Mathematica: $$ u(t) = \frac{1}{4\pi t} \int\mathrm dy\ \mathrm e^{-y^2/(4t)}\ y\ (1 - y^2) $$ on the interval $ [a, b] $ ...
1
vote
4answers
107 views

How to draw $z =\rho^2+θ^2$ surface figure in cylindrical coordinate system

The following code is from here: ...
4
votes
2answers
90 views

How to fill up the interior of the circles with red, blue and green colors?

ContourPlot[{x^2+y^2==1, x^2+y^2==4, x^2+y^2==9},{x,-4,4},{y,-4,4}, ContourStyle->{Red,Blue,Green}]
1
vote
0answers
55 views

Simulating a partial differential equation, uniform vegetation and bare soil system (2 species)

I want to simulate a system of two plants ,woody and herbaceous species; with starting condition that half of the grid (square grid) is filled with woody specie, the herbaceous specie exist on the ...
2
votes
1answer
56 views

Plot in NDSolveValue

...
0
votes
1answer
45 views

Octahedra+tetrahedra filling tessellations in 3D

This is called the quasiregular space-filling tessellations in 3D: formed by Octahedra in RED and tetrahedra in YELLOW Are there any smart ways to do a Mathematica figure drawing this?
1
vote
0answers
38 views

Why can't this density map show completely

The following code comes from this link: ...
1
vote
2answers
42 views

How to customize color corresponding to specific values in ListSliceContourPlot3D

I am trying to make a 3D contour plot I calculated in c++. I read in the results as tables and used the function ListSliceContourPlot3D. This is what I got so far I want to highlight the zero ...
2
votes
1answer
28 views

PlotLabels by numbers when plot a list of function

I have a list of functions, the length of the list is not sure. Maybe be just like: f = {x, x^2, x^3, x^4}; Plot[f, {x, 0, 2}, PlotLabels -> {"1","2","3","4"}] ...
1
vote
1answer
26 views

Arbitrary correspondence between vertical axes

I am doing boxed contour plots of a quantity that depends on two variables. Let's call it f[A,B]. A will go to the lower horizontal axis, and B to the left vertical axis. I would like the two ...
0
votes
1answer
55 views

How to adjust the the plots in a column

I have two plots p1, p2 How to reduce the size of the plot p2 such that it's heigh should be small compared to p1. And also I am interested in putting a common label for both the plots for the x-axis, ...
1
vote
1answer
29 views

ListPlot points labeled in different way

I have plot a list of points by ListPlot, and I want to be able to label these points. Basic codes: ...
3
votes
2answers
147 views

How to speed up this code with Bessel functions

I need to perform a ContourPlot on a function with BesselJ included. But my code is very slow, especially when I set the PlotPoints to be 100. I would like to know how to speed up this code. Any ...
6
votes
2answers
280 views

Drawing Lines on Differential Equation Slope Field [closed]

I am supposed to create a detailed slope-field for x' = x + t/2 I have made a slope field using: ...
1
vote
1answer
73 views

How to plot $ \sin\theta $ in degree? [closed]

Please suggest how to plot $ \sin\theta $ in degree. I am trying using the given below code but it is not working (It works if used Ticks without ...
2
votes
2answers
73 views

Track a moving peak on a periodic ListAnimate plot

I have a ListAnimate plot and I want to track the position of the peak as it moves. Is there any way to do this which takes into account the fact that the peak of the wave moves past the window of ...
0
votes
0answers
50 views

How to plot a series of arrows from a list of vectors?

Suppose I had a list of 3-vectors as a time series like the following: ...
0
votes
0answers
29 views

problem with a CDF

I've just started using mathematica, I should import a .txt file and run an experimental CDF and compare it with Kolmogorov Smirnov tests to see if to analyze the disparity of points with a Gauss ...
1
vote
1answer
30 views

Plotting of multi-lists function versus two variables of one list [closed]

How to plot 3D graph for the function Q Versus x and y given by the following sample code: ...
1
vote
0answers
45 views

$ x $ and $ y $ coordinates in ListLinePlot [closed]

I'm trying to make a ListLinePlot with my randomly generated data, and I want one vector to be the x coordinates of the graph, ...
1
vote
0answers
47 views

Finding total Period length of dataset

I've been tasked with trying to do some analysis on some data. I've been given 50000 points of data, which were claimed to have been collected at a discrete period of $1 m s$ Going under this ...
2
votes
1answer
57 views

ParametricPlot Incomplete

I have a problem to reproduce a graph. Follows the commands used: ...
2
votes
1answer
57 views

How to draw the corresponding part of the projection mesh of this surface

I want to divide a surface f[x_, y_] := (1.4025 - (-0.2 + x)^2 - (-0.2 + y)^2)^0.5 + 0.15 into meshes corresponding to the region x0y ...
1
vote
1answer
56 views

Draw a truncated octahedron packing in 3D

Consider a truncated octahedron composed by 24 vertices (4×6) 14 faces (contain 6 squares and 8 hexagons) 36 edges (4×6+6×82=36). This truncated octahedron can pack and tessellate the 3-dimensional-...
5
votes
2answers
136 views

HIghlight integer coordinates in continuous plot

Suppose I have the plot of some function y = f(x): Plot[f(x),{x, x_min, x_max}] Is there any option to highlight all coordinates (x,y) when both of them are ...
2
votes
1answer
82 views

Make a 3d plot of 2d “slices”

I have two 2D plots which came from taking slices of a 3D data set of the form (x,y,z,intensity). I manually "sliced" the data set to get the slices I wanted from two planes of interest and plotted ...
4
votes
2answers
149 views

How to draw scatter diagram according to {month, day} time format

I want to plot in the {Month,Day} time format, but the DateListPlot function seems to only accept the {Year, Month, Day} format. What can I do to draw the time ...
0
votes
0answers
33 views

Plotting a complex function under transformation

I am trying to plot the unit circle $\vert z\vert=1$ under the transformation $z\to z+\frac1z$ using mathematica. In general I want to plot a complex function $f(z)$ under the transformation $\phi(z)$....
1
vote
0answers
47 views

Retrieving boundary points of concave hull (or alpha shape) in 3D

I am trying to find the boundary points of some concave 3D region which is described by a list of points. If the region were convex I would take the convex hull and simply extract the coordinates ...
2
votes
1answer
91 views

Animation of an oscillating ball

I need to represent the oscillation of a ball within a well. The well is represented by y=x^2 on [-1,1] and the position of the ball is x=Sin[t]. How can I overlay the animation on a static graph? ...
7
votes
1answer
92 views

Plotting: Change colour scheme and line thickness at the same time

Some stylistic attributes of plots are independent of colour, e.g. thickness, dashing, etc. I can make the lines thick in this plot without having to specify a separate style for each line: ...
2
votes
1answer
117 views

Plot nested integration of an InterpolatingFunction efficiently

Suppose we have an InterpolatingFunction from NDSolve ...
1
vote
1answer
58 views

Mathematica image won't display

I need some help getting RegionPlot to display. Running this code: ...
0
votes
0answers
17 views

How to show two (or more) plots, but only evaluate one in Manipulate? [duplicate]

I have a lot of spectral data in .csv format and I need to assign each spectral line to the respective sinusoid. The general idea was to load the dataset in Mathematica, ListPlot the data and then use ...
3
votes
1answer
80 views

Why do GridLines/Ticks in TimelinePlot not make sense in some cases and what to do about it?

A support case with the identification [CASE:4383277] was created. Background Following up on how TimelinePlot can be used to plot GanttCharts (176012) I noted ...
1
vote
0answers
65 views

How to use MatrixPlot as a DensityPlot?

I have a 1000x1000 matrix the MatrixPlot of which gives this graph: The code is ...
4
votes
2answers
132 views

Automatic generation of filenames from column values and automatic PlotLegends labels from file names?

I have a two-part question about the automatic generation of file names and Plot Legends, Labels. Part 1: I typically work with very large matrices of data with columns of the form: MASTERdataset: ...
1
vote
1answer
71 views

Plot Arc Length Parametrization

I want to plot the parametrization of the curve with respect to arc length. It is all known that we have to find the inverse of the arc length of the original function i.e. $F(t)$, and ...
2
votes
1answer
35 views

How do I make exponential graph show only one trend-line with two lists of data?

Below is my code containing two lists of data, I need the graph to show one exponential trendline from an exponential equation, but it currently shows one trendline per item in the list. I am sure ...
1
vote
2answers
58 views

How do I overlay two different 3d plots in manipulate?

I have two different 3D Plots that I what to be overlayed and manipulated at the same time. Specifically: ...
1
vote
1answer
40 views

Little confused about taking transformation

I have a function f, the value of the function at x=0 is zero and at x=2 it is one. I am trying to interchange this, meaning at x=0, f should take the value of one and at x=2 f should be zero. ...
1
vote
0answers
86 views

3d plot of young's modulus for anisotropic material

can anyone can help me in plotting 3d plot of young's modulus for anisotropic material. For input i have 6*6 stiffness tensor matrix and hydrostatic pressure value. I am trying with the following ...
4
votes
1answer
56 views

Plot3D - Rugged surface at the boundary

I am trying to plot a function over a tirangular region ...
0
votes
1answer
123 views

Help with implemented Piecewise in Module

Suppose we have an ODE in the form: f''[r] + f'[r] == t f[r]+h[r] where ...
5
votes
1answer
154 views

How to plot trajectories of the Rossler System [duplicate]

This is my current homework problem. I have completed parts a and b, but am now stuck on part c. I'm not sure what it means by plot the trajectories with different initial conditions, nor am I 100% ...
2
votes
1answer
47 views

Label Callout as a symbol instead of numeric values

I have this code: ...
4
votes
1answer
69 views

MaTeX shadow option?

When I create my graphics, I find that the tex objects created with MaTeX either clash with other objects (such as a coordinate grid) or, if I add a background, erase too much. Is there another option ...

1
3 4
5
6 7
223