Questions tagged [plotting]

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

10,006 questions
36 views

ListLinePlot/ListPlot: How to center the ticks on the steps in the plot?

I am plotting xy-data using ListLinePlot with option InterpolationOrder->0 to get a step-like output. Now, the ticks are aligned to the rising part of the step (...
36 views

Having trouble plotting a logarithmic equation

I want to plot these two logarithmic equations: $\log_{10}x^2 = 6$ $10^{\log_{10}x^2} = 10^6$ $x^2 = 10^6$ $x=\pm 10^3$ This is my code for trying to plot this: ...
99 views

How to integrate this function?

How can I perform the following integral? ...
50 views

Finding positive region of continous function

I want to find (and plot) the positive region (within a certain domain say x<3,y<3) of a function ...
28 views

How to plot for imported data while performing some operations on different columns?

I have imported an Excel file, then I did multiplied different numbers with different columns; ...
49 views

Plotting a transcendental equation [duplicate]

I would like to get this graphic: from this article. Here $\kappa$ and $\varepsilon_{dd}$ are related by: ...
37 views

How do I evaluate “If” statement inside PlotLabel? [closed]

I have an experimental function that is dependent on x and y [f(x,y)=Sin(ax/by)]. I am trying to make a 3D plot of f using the manipulate function so that I can easily input measured values of ...
60 views

find gravity acceleration (g) using FindFit

I need some help again, with this simple exercise: Use the data to determine g, but this time use the functional form T = 2 pi Sqrt[L/g] for the period T of a ...
26 views

ParametricPlot of multiple curves Plot y[z][t] versus x[z][t] with both change with t (continuous variable) and z (represent different groups)

Two functions both change with the same independent variable t, there is another variable represent different groups (z). how to plot y[t] versus x[t] with each group of z represented by one ...
39 views

3D plots don't show box or axes in 11.3 on Linux [duplicate]

I am using Mathematica 11.3 Student Edition on Linux (Ubuntu). When I make a 3D plot using Plot3D or ParametricPlot3D or any ...
45 views

How to plot four-dimensional discrete data (x,y,z,p)?

I have got a large list of 4D data (x position, y position, z position, amplitude, and they are 1D arrays). I want to plot x, y, z as axis and amplitude as an express of color. Maybe I could use ...
64 views

Graphics not plotting in new version

There is something in the old version 8 that does not update graphics into my newer Version 11: ...
33 views

Plotting results of NMinimize with respect to a parameter

I have some predefined function F[x], where x can be a 2D vector. I am doing the following: ...
71 views

How can I remove a certain point from a 2D region?

I started experimenting with Mathematica a few months ago in college (It's my first year in electronics engineering, so I'm not even close to an advanced user's profile yet). My problem comes when I ...
25 views

DateListPlot Didn't Display the Data [closed]

I'm trying to plot the data with DateListPlot function, but having some issues with the output. Here is what I'm doing. I'm downloading and parsing RAW JSON like this and extracting values section ...
26 views

Calibrating the axes of a 2D plot

When the data a = Table[Sin[x], {x, 1, 20, 0.1}]; ListPlot[0.1 *a] is plotted, one finds that the range of x-axes is labeled as 0 to 200: How can one reset the ...
37 views

Why are LogPlot results different to Plot of log results?

I have the following function for which I want to generate a LogPlot for: ...
52 views

Dynamic Plot of multiple Disk Graphics

I want to plot multiple disks with disk-coordinates and disk-radii from two dynamically updated lists. I think there should be an easy way to do that but I dont get it. Thx for your help! ...
128 views

Create a Venn diagram showing the relations of three sets of quantum states [closed]

I've determined a number of probabilities pertaining to three subsets of the "magic simplex" of quantum states described in https://arxiv.org/abs/1212.5046, and certainly would like to have a ...
77 views

Can't place PlotLabels with PlotLayout->“Row”

When I try to plot a set of graphs using ListPlot with PlotLayout->{"Row", 4}, and then try to label the plots using ...
44 views

Plot3D does not show graph [closed]

Recently, I tried below code in Mathematica to plot a 3D graph. Plot3D[cos[x] + tan[y], {x, -Pi, Pi}, {y, -Pi, Pi}] But there is no graph in the resulted figure....
23 views

...
46 views

Problem with Manipulate+Plot [closed]

Here's an image of my problem. PlotMe is just a variable I use to store an equation. It is shown in Out. When I use Output(1002) in In(1003) it works as expected. However when I just use PlotMe ...
49 views

How to customize ListPolarPlot axes?

I am trying to make a polar graph of star positions. My current code is ...
73 views

3D-Plot optimization results for varying parameter values

Before starting, FYI: This is a question related to 3D Plot the result of local Minimize with varying parameter values Consider my objective function, $objF$: ...
63 views

Weibull statistics

I have two data sets am interested in finding the weibull modulus and characteristics strength for the two data sets and plotting the data seperately but on the same graph Material (a) 723, 684, ...
120 views

Error plots in MMA 12.0

Suppose I have the following data and associated quartiles: data = RandomReal[{0, 1}, {40, 10}]; qs = Quartiles[data] I want to make an ErrorListPlot from the ...
55 views

Plotting the behavior of the solution of six equations

I need plot the behavior of the solution of a system of six equation In 2D I would use StreamPlot. ...
88 views

Filling only parts of a ListLinePlot

I have a set of {x,y} data that shows a measurement value over time on the x axis. I'd like to highlight several chunks of time on my ListLinePlot by filling the plot to the axis for only certain x-...
135 views

Plots of functions in Mathematica [closed]

I have two functions x[t] and y[t] which are similar in trend. I want to plot them in the same figure but it is hard to ...
80 views

Arrays, Mapping, and Convolutions

I'm trying to create a function that convolutes a 3D Normal Distribution to the points listed below. However, I think I'm going about it in the wrong way. When I try and convolve it with the points, ...
162 views

Reverse ColorFunction or ColorData

please excuse my bad English, I'm not a native speaker. This should be fairly simple: Is there a simple way to "reverse" ColorFunction or ColorData? Let me explain what I mean. Let's say, we have ...
114 views

How to show that $f(z) = z^2 + 1$ intersects the line through the roots of $f(z) = 0$ in ComplexPlot3D?

I have plotted the complex function $f(z) = z^2+1$ by using the following code: ComplexPlot3D[z^2+1, {z, -5 - 5 I, 5 + 5 I}] However, I want to show that $z^2+1$ intersects the line $\Re(z) = 0$. ...
56 views

How to use points data to plot 2D colorful region image?

I have a list data just like following: ...
43 views

Different integration results when TrigToExp used

I am trying to do a double integral over a domain $x \in (\theta_1,\theta_2), y \in (0,\theta_1)$. Instead of doing a definite integral I am doing an indefinite integral and taking limits. All that is ...
70 views

Creating a function that can be used to plot a triangle with an area of 1

The function should take an input x, which is the absolute value of the bounds of the triangle and should be centered at 0. I'd like to use ...
57 views

Removing background from text

I have the following plot I'd like to remove the edges of what look like boxes around the text with T's. For example, the $5T_2$ label has a hard edge around it which cuts into the lines. Is there a ...
71 views

ListPointPlot3D filling between two lists

I'm trying to connect pairs of corresponding points from two lists in a ListPointPlot3D (similar to what was done here but in 3D). Filling-> {1->{2}} isn't ...
48 views

How to generate animation from manipulate?

I simulated a spherical shaped robot (Snippet-a). I used Snippet-b to generate the Graphics using manipulate. How to save ...
51 views

Good way to plot exactly overlapping data

How do I visualize plots containing lines that exactly overlap in certain regions such that it is clear what lines are underneath. This question is inspired by Best way to plot nearly identically ...
27 views

Opacity or related issue with DensityPlot3D

I'm trying to make use of the function DensityPlot3D with the following specific example ...
37 views

Finding two peaks of a plot (dataset)

I have a dataset which on plotted looks like the following: As you can see there are two maximas around origin, I want to find out the (x,y) value of both of them, is there a way to do so?
38 views

Why do I get a blank graph when using Manipulate with NDSolve?

I'm trying to model an SIR model using the Manipulate function so that I can change the parameters. Although, when I enter in the following code: ...
43 views

Find x at a given t and f(x,t) == constant from a system of coupled PDE

Is it possible to find the speed of a moving front (produced by the below code) in which modulating beta changes the speed of the front? Basically, I am trying to map the x-values of f(x,t)=0.5 ...
47 views

Insert calligraphy TeX in FrameLabel

I want to put some Tex code in my FrameLabels so they are consistent with my equations. So far, I managed to do it using things like: ...
38 views

Manipulate plot of a system of PDEs with NDSolve

Modeling 1D diffusion of an enzyme, e, through a sphere with substrate, s, I arrive at the below equations: I then pass these equations to NDSolve, Evaluate at a range of r and t and Plot and ...
23 views

Inequality in RegionPlot with LogLinear scale

I want to plot a RegionPlot in LogLinear scale. If I try with a simple linear scale, ...
31 views

Tick label spacing and naming control

Take a look at the following; my discrete points are chopped because of my choice of vertical plot range. If I increase that plot range to include my discrete points, I lose my "m" at the origin ...