New answers tagged

2 votes

Why did this code make an error when drawing the function image? How to modify it?

A TogglerBar is more flexible for the display of multiple functions. With it, you can select any combinations of functions. ...
  • 135k
0 votes

What is the equation to plot a vertical line?

Make an equation with a very steep slope that mimics a verticval line. Be sure to add the PlotRange option to limit the vertical range of the plot. Example with 4 vertical lines: Plot[{Sin[x],1*^6(x-[...
  • 39
6 votes
Accepted

StreamPlot ignores some options

Your problems come from wrong syntax: Q . {{1}, {0}} This results in a matrix, not a vector. In MMA there is no distinction between row and column vector. Instead, ...
  • 35.5k
1 vote
Accepted

How to plot a hazard function?

You need to use HazardFunction. Do not confuse a PDF with a ProbabilityDistribution ...
  • 33.1k
4 votes

Dynamic plot with button and slider

...
  • 9,301
3 votes

How to write a Mathematica code to plot complex function in a 3D plane

...
  • 135k
3 votes

How to write a Mathematica code to plot complex function in a 3D plane

You could take the real part of $f$ as the $x$ coordinate, the imaginary part of $f$ as the $y$ coordinate, then use either the Abs of $f$ or its Argument for the $z$ coordinate and use ...
  • 124k
3 votes

How to give an approximation expression of a complicated expression using Mathematica?

Try the following: First, let us observe that one calculates the inner integral precisely: ...
5 votes

How to give an approximation expression of a complicated expression using Mathematica?

Using comment of user: Mauricio Fernández: ...
1 vote

Creating a Plot of Two Functions with Different Colors

There's a mistake with the brackets. The following works fine ...
  • 9,301
0 votes

ListPlot doesn't start from the origin

...
1 vote

Issues plotting the solutions from NDSolve

Look at the following: x = 1.; NDSolve[{f'[x] == f[x], f[0] == 1}, f, {x, 0, 1}] (* NDSolve::dsvar: 1.` cannot be used as a variable. *) Further: ...
  • 35.5k
4 votes
Accepted

Studying hyperchaotic finance system

No, they are not identical. This is what I get: MakePlot[{0.13, 0.18, 0.87}, {1, 2, 3}, 0.1, 1000] MakePlot[{0.13, 0.18, 0.87}, {1.001, 3.001, 2.001}, 0.1, 1000]
2 votes

How can I draw a line and an ellipse in the same coordinate system?

Using Region functionality: ...
  • 25.3k
2 votes
Accepted

How to compare two ParametriPlots for different problems?

...
  • 135k
0 votes

How can I draw a line and an ellipse in the same coordinate system?

...
  • 241
2 votes

How can I draw a line and an ellipse in the same coordinate system?

can be drawn to the same coordinate system. Why not just use Graphics? Note that the Circle command can also draw an ellipse! ...
  • 124k
2 votes

How can I draw a line and an ellipse in the same coordinate system?

Clear["Global`*"] eqns = {x^2/16 + y^2/9 == 1, x == 2 y + 1}; EDIT: Intersections are at ...
  • 135k
3 votes
Accepted

Placing a VectorPlot under a plot3d

...
  • 135k
1 vote
Accepted

How to plot the function correctly like the following?

You should not expect to do complicated calculations using machine precision. Use arbitrary-precision in the plots by specifying a WorkingPrecision ...
  • 135k
1 vote

Why is my colorbar not scaling properly?

...
  • 135k
1 vote
Accepted

Manipulating boundary conditions of coupled non-linear ODEs using Manipulate and ParametricNDSolve

...
  • 135k
4 votes
Accepted

Parametric3DPlot Problem

should be y'[t] == 1 - β*y[t] - x[t]^2; ...
  • 49.4k
6 votes
Accepted

How to make the size of two plots equal?

Set the same ImageSize, ImagePadding and AspectRatio to both plots. To deal with your ...
  • 9,292
6 votes

Polar graph of the Riemann zeta function

The simplest way to get an expected plot exploits ParametricPlot and for the sake of clearer visualization we can take advantage of ...
  • 55.5k
3 votes
Accepted

One of the labels in FrameLabel to be in the top left rather than top middle

I will provide an answer in a general context with a MWE. You need to look up Legended ...
  • 9,301
1 vote

Plotting a complex number on the Argand diagram

Mostly to demonstrate some built-in functions for handling complex numbers: a = 0.25^(2 + I); {Abs[a], Arg[a]*180/π, Re[a], Im[a]} {0.0625, -79.4288, 0.0114661, -...
  • 25.3k
5 votes

Polar graph of the Riemann zeta function

...
  • 124k
2 votes

Plotting a complex number on the Argand diagram

Just find the real and imaginary parts of your input. The x coordinates are the real parts and the y coordinates are the imaginary part. Then using ListLinePlot to ...
  • 124k
2 votes
Accepted

How to plot multiple functions in Fourier Series?

...
  • 124k
2 votes
Accepted

How to improve this plot? Behaviour of the derivative

...
  • 135k
3 votes

How to improve this plot? Behaviour of the derivative

First, the limit of the derivative at zero is +/- 3/2 not infinity. For simplicity, I eliminated the legend. You must define the x and y axis separately. I do not understand what you mean by: "...
  • 35.5k
5 votes
Accepted

ListInterpolation and extrapolation: order has been reduced,

ListInterpolation does not expect a list of $\{x_i, y_i\}$ values. The way you are using it, Mathematica interprets it as a 2D array, and in one dimension you have ...
  • 33.1k
4 votes

ListInterpolation and extrapolation: order has been reduced,

...
  • 135k
2 votes

How to make all my frames to be the same size?

Edit: in order to make my point even clearer ...
  • 9,301
2 votes
Accepted

How to make all my frames to be the same size?

Try "Grid": ...
  • 35.5k
1 vote
Accepted

Suggestion for labeling my plots

I am leaving this on top because I like it the most Edit 2: ...
  • 9,301
1 vote

Need help to 3D plot of the letter W

It could be that your system is using a different font and thus your letter "W" looks different. You can specify the FontFamily as an ...
  • 434
1 vote
Accepted

Need help to 3D plot of the letter W

If I understand correctly, it's the Mesh that you want to match. Try this ...
  • 9,301
7 votes

Custom scaling of x-axis in ListLogPlot

It is actually pretty easy if you know exactly what properties of graphics you need to prioritize. Options are pretty flexible. A few approaches. APPROACH 1: arbitrary smooth X-scaling People were ...
2 votes

How to plot the described figure in mathematica?

I’m a professor and sometimes I don’t pose questions well. I suspect this is the case here. When given an ill-posed question, just say “I believe this question is ill posed. I can make a shape of ...
  • 3,063
3 votes

How to plot the described figure in mathematica?

...
  • 21.8k
2 votes
Accepted

How to plot the described figure in mathematica?

Something to get you started ...
  • 9,301
1 vote

Aligning text on a graph

Without knowing your data, we cannot experiment with your code. However, I can propose a workaround. Try this: ...
5 votes
Accepted

Legend for plot of multiple functions involving ReplaceAll only shows first function

Try this: Plot[Evaluate[({x, x^2, x^3} /. {})], {x, -1, 1}, PlotLegends -> {"n=1", "n=2", "n=3"}] Have fun!
1 vote

Interrupted plot lines when multiple branches of an ODE solution are plotted

This shows that the gaps come from discontinuities in one function being applied to other functions in the Plot. You can use ...
  • 225k
5 votes
Accepted

Visualizing Signs of Two Expressions

RegionPlot. When a>b>0,-a + Sqrt[a^2 - b^2] and ...
  • 49.4k
5 votes

Visualizing Signs of Two Expressions

If I understand you correctly, try this: ...
4 votes

Plotting set of functions with individual regionfunctions using PlotLegends

You can also use funs and regfun to construct ConditionalExpressions and ...
  • 354k
2 votes

Fourier series fit doesn't consider different local maxima of the data

It is not clear what you mean by "fit" and what you need to use it for. (And this is more of an extended comment rather than an answer.) If you are just wanting to obtain a function that ...
  • 36.6k

Top 50 recent answers are included