New answers tagged

1 vote

3d Contour Plotting

...
user avatar
  • 14.9k
0 votes

How to plot 3D spherical graph using x y data?

You could proceed as follows: -Interpolate the data (delete the last element of T as Syed noted) -Define a piecewise function that returns 0 for radius > data range -Use DensityPlot3D with a region ...
user avatar
  • 24.3k
5 votes
Accepted

Plotting, Integrating two variable function with cross-restricted domain

For the plot you can use RegionFunction, which takes a pure function which takes x, y, and z values:: ...
user avatar
  • 123k
0 votes

How to write divided differences in Mathematica?

Divided differences can be calculated as follows. ...
user avatar
  • 16.7k
9 votes
Accepted

How to use PlusMinus properly?

Per the documentation, you could define the function for PlusMinus: ...
user avatar
5 votes

Scalloped edges to Plot3D with Disc domain

Rather than manually increasing the number of PlotPoints, increase the MaxRecursion parameter instead, to let the built-in ...
user avatar
  • 58.4k
9 votes
Accepted

Scalloped edges to Plot3D with Disc domain

Plot3D[(x^2 + y^2 - 100)^2, {x, -14, 14}, {y, -14, 14}, PlotPoints -> 100, RegionFunction -> Function[{x, y}, {x, y} ∈ Disk[{0, 0}, 13.5]]] Or ...
user avatar
  • 30.6k
2 votes

Plot for DSolve in mathematica

...
user avatar
  • 120k
5 votes
Accepted

Again there are some holes in my plot

The function a shows in some regions of the x-y plane small imaginary parts. You can get rid of them by modifying the plot command to ...
user avatar
  • 2,449
5 votes

Already generated plots missing in Show

Clear["Global`*"] Define separate functions rather than separate plots. ...
user avatar
  • 120k
5 votes

Already generated plots missing in Show

...
user avatar
  • 14.9k
3 votes
Accepted

How to fix vertexnormals to eliminate a little shadow on the sphere?

Use {θ, Subdivide[0.0001, Pi - 0.0001, 51]} instead of {θ, 0., Pi, Pi/50} to avoid the singularities in spherical coordinates. ...
user avatar
  • 213k
6 votes
Accepted

Empty .png figures generated by a function "PlotWithGrid" whereas no problem with Export function

Ok, finally managed to get it to run from within wolframscript... I have created an updated version of PlotGrid that should work ...
user avatar
  • 23.4k
7 votes

Finding the height and width of a plot?

You can use the ResourceFunction GraphicsInformation to obtain this information: ...
user avatar
  • 123k
4 votes

Finding the height and width of a plot?

I think the question is about ImageSize and not PlotRange. One way to get the "current" size ...
user avatar
  • 213k
6 votes

Adding a second legend to Plot?

You can use a list of multiple legends as the option setting for PlotLegends: ...
user avatar
  • 349k
4 votes
Accepted

Making a plot half the width and height of another plot?

Is there a simple way to make another plot whose frame is is half the width and height of plot P1? I do not know if I understood the question correctly. If not, will delete this. But how about using ...
user avatar
  • 108k
4 votes

Finding the height and width of a plot?

I can suggest another simple solution: plot = Plot[x^2, {x, 0, 100}] Association[Options[plot]][PlotRange] (* {{0, 100}, {0., 10000.}} *)
user avatar
5 votes

Finding the height and width of a plot?

Finding the height and width of a plot? I think you are looking for something like the Wolfram Function Repository (WFR) function GraphicsBounds. It seems that ...
user avatar
2 votes
Accepted

Finding the height and width of a plot?

This is an interesting question and I do not think there is a general answer to your request. A simple answer might be to set the ImageSize option. This sets the ...
user avatar
  • 14.7k
1 vote

PlotPoints does not work properly in ParametricPlot3D

The plot corresponding to the first block of code in the question is, with R = 1 for specificity, ...
user avatar
  • 58.2k
4 votes
Accepted

Adding a second legend to Plot?

...
user avatar
  • 120k
5 votes
Accepted

How to write a specific Bessel function in Mathematica

...
user avatar
  • 120k
6 votes
Accepted

How to add ticks for mesh?

Use Solve or NSolve to find all the intersection points and use Epilog to add all the lines ...
user avatar
  • 30.6k
1 vote

Numerical Plot for an example

When we use NDSolveValue, the result sol is the interpolation function. It is difference to ...
user avatar
  • 30.6k
6 votes
Accepted

Lighting a ListPlot3D with a Texture

Use Lighting -> "Neutral" as a styling directive in PlotStyle: ...
user avatar
  • 349k
6 votes

How to create Gantt charts

We can use Wolfram Function Repository (WFR) function ProjectDataGanttChart. Here is an example: ...
user avatar
4 votes

Lighting a ListPlot3D with a Texture

EDIT Using ListPlot3D: So I modified the texture that was a purple sheet mostly. ...
user avatar
  • 14.9k
5 votes
Accepted

How to connect 100 random points on a ring through the shortest path?

...
user avatar
  • 14.9k
5 votes
Accepted

Numerically solving transcendental equation for a range of values

...
user avatar
  • 120k
0 votes

How to plot functions from user input?

How about something like this? ...
user avatar
  • 3,792
1 vote

Plotting horizontal lines on Bode plot

Use the GridLines option, and Mesh also if needed. ...
user avatar
  • 8,373
3 votes

Beautiful Color Schemes for 3D Plots

We can use Format->Stylesheet->Book->Textbook to select the theme. And use Alt+8 to input the code. ...
user avatar
  • 30.6k
13 votes
Accepted

Build a 3D heat map plot from 4D data

Using your data {fmin, fmax} = MinMax@data[[All, 4]] (* {0.996823, 1.00672} *) Using ...
user avatar
  • 120k
0 votes

How to approximate a function using B-spline interpolation?

B splines are already built into MMA. To expand Sin[x] over the region 0 o 2 Pi into B splines of degree d=3 we choose a basis of b splines with uniform knots at a distance of 1/(d+1): ...
user avatar
  • 24.3k
1 vote
Accepted

How to avoid holes in combined 3D Plot and 2D Plot

Increasing the range in {z, min - 1, min + 1} removes the holes, that come from the surface existing outside the defined range. ...
user avatar
  • 28.9k
2 votes
Accepted

Adding observation to time series

As you did not post some sample data we create 2 time series: ...
user avatar
  • 24.3k
5 votes

How to draw a heat map for some data across a circular region?

Here's your data. You can fill in the empty spaces, where values are zero, using your own method. ...
user avatar
  • 16.3k
1 vote

RotateLabel doesn't work?

Another work around that seems less kludgy: Use Show[p1,... RotateLabel -> False]. The List*Plot function must fumble the <...
user avatar
  • 213k
5 votes
Accepted

RegionFunction is not working for ComplexPlot

It must be a bug. Here is a working around. ...
user avatar
  • 30.6k
0 votes

Getting the "correct" branch of a complex function

A minor generalization of Michael E2's excellent answer, just to show the final result (I solve for the vertical cut so that $\lambda$ can vary) ...
user avatar
  • 1,448
5 votes
Accepted

Getting the "correct" branch of a complex function

Maybe this shows what is desired: Sheet #1: ...
user avatar
  • 213k
4 votes
Accepted

Making text larger without changing size of superscript?

You can style each element of the Subsuperscript independently: ...
user avatar
  • 3,792
4 votes
Accepted

NSum::nslim: Limit of summation k is not a number. Help, please(

Your teacher code has lots of problems. Try this notebook You have used a and b as numbers, then later defined ...
user avatar
  • 108k
0 votes
Accepted

Animate a point that follows a function inside a plot

I honestly couldn't follow your code, but I think I get the gist of your question. One thing that you need to take care of is what the range of the animated point is. You're just making assumptions ...
user avatar
  • 3,792
1 vote
Accepted

Create a Table with 3 different variables from 2 Lists and 1 Table

Let's assume that the x-coordinates are in a list called xs. Similarly for a list called ys. Let's say ...
user avatar
  • 3,792
0 votes

Writing code for a diagram

Here is a part of my package for performing calculations with Feynman diagrams: 1.1 Define a set of Feynman diagrams ...
user avatar
  • 15.7k
1 vote
Accepted

Plotting a conditional expression

You're almost there: ...
user avatar
  • 23.4k
1 vote

How to make each value of a data set a different marker?

...
user avatar
  • 28.9k
1 vote

Plotting horizontal lines on Bode plot

This is a LogLinearPlot. Let's use an example plot from the documentation and draw lines over it. ...
user avatar
  • 14.9k

Top 50 recent answers are included