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
1
vote
1answer
52 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
134 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
62 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
141 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
32 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
38 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
77 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? ...
6
votes
1answer
76 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
102 views

Plot nested integration of an InterpolatingFunction efficiently

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

Mathematica image won't display

I need some help getting RegionPlot to display. Running this code: ...
0
votes
0answers
15 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
70 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
63 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
131 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
68 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
33 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
56 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
81 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
53 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
46 views

Label Callout as a symbol instead of numeric values

I have this code: ...
4
votes
1answer
66 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 ...
0
votes
0answers
46 views

Extracting a linear equation from a graph

...
0
votes
0answers
45 views

I want to plot root of the following complex equation

I am trying to plot the roots of the following equation as mentioned in the code below But it is not giving me output. If anyone can resolve this problem for me is most welcome. ...
1
vote
0answers
23 views

How to eliminate the error in the code of calculating geodesic curve

I find the code to calculate the geodesic on a general surface from here. But there is a mistake in calculating the geodesic between point {0, 2 ,f[0,2]} and point ...
4
votes
1answer
98 views

ListPlot3D weirdly distorts and loses plotting data

I was trying to plot a simple $n\times3$-sized $(x_i,y_i,z_i)$ matrix data with ListPlot3D, which is basically three lines along $y$-direction. However, the middle ...
0
votes
1answer
49 views

Program Transfer function and plot

I need to program a transfer function T(s) = 1/(s^2+Bs+1) and simulate the response of a unit step input of the Force for each value of B which i used in my range my B values are 4,2,1.8,1.4....... <...
1
vote
1answer
96 views

How to plot root of the complex equations

I want to plot the roots of the complex equation of a1. I have tried the following code but this is not giving me any result. I need bistable plot. How it is possible.? ...
2
votes
1answer
63 views

Weird behaviour of Plot

I tried to execute this simple command Plot[Cosh[t] - Sinh[t] + Sin[t], {t, 0, 40}] and this is the result I got As you can see, there is an unexpected visual ...
1
vote
0answers
33 views

Evaluate and PlotLegends

Related to this question here. I dont understand why Evaluated->True does not behave properly when also using PlotLegends. For example, running the code below ...
0
votes
0answers
27 views

Why does using `Plot3D` with `RealAbs` cause a white space at kink but using `Abs` doesn't?

Consider the following plot: Plot3D[RealAbs[(x-5)+y],{x,4.999,5.001},{y,0,0.001}] The above plot has a white space where the derivative has a discontinuous jump (...
1
vote
0answers
45 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 ...
0
votes
0answers
38 views

Why won't my PlotRange change?

I'm trying to expand the x-axis, but it won't change: ...
3
votes
1answer
66 views

Is there a way to Plot intersection point in Manipulate?

I've tried to plot this . But It seemed useless in MeshFunctions ...
0
votes
0answers
45 views

Problem with animation

I am trying to animate an elastic collision and i don't how to code to describe the motion after the impact. Here's a piece of code: ...
1
vote
2answers
88 views

RK4 residual error for ODE

Below I am giving the code that I am using ...
0
votes
0answers
41 views

how to speed up manipulate and contourplot

I know that ListAnimate perform well. But if we have parameters in the formula. For example: ...
0
votes
0answers
72 views

Elastic Collision Animation

So I am trying to animate an elastic collision, but I have a problem with the ruler when using Manipulatefunction: ...
0
votes
0answers
45 views

Why won't ListPlot work? [closed]

So i want to make a simple animation and an error occurs that "Coordinate should be a pair of numbers, or a scaled or offset form". Here's the code: ...
0
votes
1answer
22 views

Specific frameticks in ListLogPlot

...
1
vote
1answer
42 views

I'm not able to plot a point at the end of a circle

Here is my code for My Project. ...
1
vote
1answer
25 views

Add Framelabel for ListLogLinearPlot

I understand that Framelabel property does not work for ListLogLinearPlot. How we can add axis label with ListLogLinearPlot?
1
vote
0answers
37 views

Adding PlotLabel in individual plot creates white box when “showing” two plots

I am creating a line plot (pl1) with a specifically placed PlotLabel and then I show both pl1 and pl2 (pl2 is a contour plot). The PlotLabel from pl1 appears with a white highlighted box behind it. ...
0
votes
1answer
41 views

StreamPlot is giving correct answer while VectorPlot gives wrong answer

I'm trying to plot this vector <1,3*y^(2/3)> using vector plot. but it gives me a wrong answer. ...
0
votes
0answers
44 views

Log plot of residual error for numerical solution of ODE

Below I am giving the code that I am using ...
0
votes
0answers
25 views

complete contours (outline) from a image

I want to find the contours of (parts) image and sent the output to a lasercutter. For example, take this image: I use this code: maskv1 = AlphaChannel[RemoveBackground[bal1]]; contours = ...
1
vote
0answers
117 views

Coupled PDE equation or boundary condition creating singularity issue

Previous post: Using NDSolve and PieceWise for boundary conditions for coupled PDEs I realised that my previous post was a little vague so I hope this post clarifies any confusion. I've looked over ...
0
votes
0answers
54 views

Mollweide plot of Sin[Theta]Cos[Phi]

I want to plot the function Sin[Theta]Cos[Theta] in Mollweide map. I don't know how. Please help. Thank you so much!