Plot Definition and 658 Threads

  1. M

    Mathematica Optimizing Mathematica Calculations: Faster Plotting with Delayed Expressions

    Hi PF! I have a series of calculations I'm executing in Mathematica, and all expressions use the delayed := equality. At the end I am trying to plot a function, and for this example let's say it's f[x_]:=x When I plot, I am forced to plot in the form Plot[f[x]/.x->y , {y,-1,1} This method takes...
  2. M

    Mathematica Cannot Plot This Function in Mathematica

    Hi PF! I have the following in Mathematica. Notice h[2,x,0.5] gives me an output in terms of x, but when I try to plot this I get errors. Anyone know why this is? I read the error messages but am still unsure why I am not getting a clean output.
  3. W

    MATLAB Plotting animations (time-evolution)

    Hi all, I have a spatial probability density function that is dependent on ##x##, space and ##t##, time. I am able to make a plot for spatial probability density for each point in time by specifying ##t## values by using the fplot function. However, I want an animation that allows me to see...
  4. PhiowPhi

    ANSYS - Maxwell, current distribution plot?

    I was modeling current distribution in a component: And I plotted the ##\vec J## to simulate & understand the current distribution throughout the conductor, all the flows make sense, however, at the edge of the conductor like so: Current would distribute all around the area, which is...
  5. MrGenetic

    Ramachandran plot torsion angles

    Can torsion angles were affected by repulsive effect of aminoacid interactions between side chains? Can torsion angles were affected by hydrophilic or hydrophilic interactions between side chains? I know that protein levels were affected by them but torsion angles is suspicious for me
  6. MathematicalPhysicist

    MATLAB Fixing Matlab Plot Error: Invalid Color/Linetype Argument

    I am using Matlab's 2017Rb academic license. And while trying to operate the following sequence of commands: x = linspace(0,2*pi,1000); y = sin(2*x); plot(x,y,'k−','linew',2); hold on; I get the following warning: Error using plot Error in color/linetype argument. What seems to be wrong...
  7. Y

    FORTRAN 90 How to plot the Poincaré section?

    Hi all, I'm writing a fortran 90 program to simulate the Duffing oscillator. I have it working and have produced a cos wave which I expected for D (the driving force) being set to 0. Here's the code: program rungekutta implicit none integer, parameter :: dp = selected_real_kind(15,300)...
  8. S

    Straight line plot of bipolar transistor - temperature?

    Hey everyone, I'm trying to plot a straight line for a bipolar junction transistor to find the room temperature, T, using my experimental results for the associated base-emitter voltage, ##{V}_{BE}## and collector current, ##I_C##. Here's the equation that I'm using: $$ I_C = α_F {I}_{EO}...
  9. D

    I How does one make an Amplitude vs. Frequency plot?

    I am working on homework for a physics lab course and I am asked to write a python function which will produce an amplitude v.s frequency plot. In a previous problem I wrote a function which simulates data from a sine wave in the form of a time series; the new function should be able to take...
  10. Morbidly_Green

    Python Removing previously plotted points on scatter plot; python

    Homework Statement I'm plotting moving particles and I need a way to refresh the graph space with every loop. Meaning I want the points to NOT leave a trail of other points behind them . Basically I want to get rid of the old points as I plot new ones. Homework Equations N\A The Attempt at a...
  11. Allan McPherson

    Using Maxima to plot error in Fourier series

    I'm trying to use Maxima to examine the error in a Fourier series as the number of terms increases. I've figured out how to produce a Fourier series and plot partial sums, but this has me stumped. If anyone experienced with the Maxima CAS has some insight into this, I would greatly appreciate...
  12. M

    MATLAB How can I plot a separable function in 3D using polar coordinates?

    Hi PF! I'm trying to plot in 3D. I have ##r = f(\theta,z=0)## and it plots well. However, I would like to plot ##r = f(\theta,z)## in 3D. Any idea how to do this? The radius is actually a separable function ##r = h(\theta)g(z)##, so I have ##h## plotted for a given ##\theta## vector and ##g##...
  13. A

    A How can I plot a 3D phase space for a system of differential equations?

    Hi, i would like to know how can i plot a three dimentionnal phase space (mathematica), for this kind of differential equations: x'= (z^2(x-4y+z)+y^2(x+z)+z(x*y-x^2))/(z^2+x^2-2) y'=y(y-3)+z(4y-z)+3(1-x^2)-2(y-3z)(z^2(x-4y+z)+y^2(x+z)+z(x*y-x^2))/x(z^2+x^2-2)...
  14. L

    Plot the contact pressure vs axe x (mm) in ansys workbench

    thanks for you sir i want to se how can i plot the contact pressure vs axe x (mm) in ansys workbench.? its very important for me
  15. D

    MCNP VisEd Plot tracks :Error->File xsdir not available

    Hello, I use free VisEd and I want to plot the collision, the particle's transport and the particle in tally but I have an error. For the source the plot is ok. How can I solve this problem freely? Someone can help me? My input :C Cellules30 50 -1 (-1 3 19 ):(-2 3 ):(-4 3 -6 5 -7 1 2 ) imp:p=1...
  16. Telemachus

    Plot function of 3 space variables plus time

    Hi there. I am willing to plot a function of three space variables plus time, let's say ##\phi(x,y,z,t)##. The idea is to plot the 3D function for each time, i.e. evolving in time. As I have three independent variables, corresponding to the three Cartesian coordinates, the function is actually a...
  17. S

    A Neutron star mass-radius relation plot

    Hi there... I have a question about the tipical mass-radius relation plot for a neutron star, something that looks like this for different equations of state: My question is, what is exactly happening at the ends of the EOS lines? I know that after passing the maximum mass the curve starts...
  18. kelvin490

    MATLAB Matlab -- how to make a smooth contour plot?

    I want to represent data with 2 variables in 2D format. The value is represented by color and the 2 variables as the 2 axis. I am using the contourf function to plot my data: load('data.mat') cMap=jet(256); F2=figure(1); [c,h]=contourf(xrow,ycol,BDmatrix); set(h, 'edgecolor','none'); Both xrow...
  19. M

    Mathematica Mathematica Plot Real Portion (Contour Plot)

    Hi PF! In Mathematica and given the code below, I am trying to the real part of ##\sigma##, ##Re(\sigma)##, in stead of simply ##\sigma##. Any help would be awesome! Here's what I have: n = 3; ContourPlot[(\[Sigma]^2 - 2 (n - 1) (2 n + 1) \[Epsilon] \[Sigma] + (n - 1) n (n + 2)) ((...
  20. Tspirit

    The plots of wave function of harmonic oscillator

    Homework Statement In Griffiths' book "Introduction to Quantum Mechanics", Section 2.3, Chapter 2, the Fig. 2.7 gives the plots of the wave function (##\psi_{n}##) and its modulus of the harmonics oscillator, see the Appendix. With the order (##n##) increasing, they become both higher. However...
  21. E

    What is the Software that has this Plotting Style?

    What is the software that has this kind of plot: I want to use it for plotting graphs because it looks clean. Thank you in advance. Edit: To avoid confusion, I want to know what software produces this graphing style, not the kind of plot.
  22. W

    Mathematica Add a rectangle to a plot to indicate range

    I have some data points that I want to plot and suppose I have the function ##f(x) = x##, with the domain having the range ##0\leq x \leq 10##. Assume that the experimental values lies in the range ##4\leq x \leq 7##, how can I put a rectangular region to cover this range behind my plot so as to...
  23. B

    What is initial slopes of the plot Z versus P ?

    Homework Statement Use the van der waals constant for ##H_2## and ##O_2## to calculate the initial slopes of the plots of compressibility factor Z versus P. Homework EquationsThe Attempt at a Solution Using virial expansion for van der waal gas in terms of ##P## I get ##Z = 1 +...
  24. AdrianMachin

    Plot 3D graph of electric potential of a charged particle

    Homework Statement Plot the electric potential ##V(r)## due to a positively charged particle located at the origin of an XY plane. Homework Equations ##V=\frac 1 {4πε_0} \frac q r## The Attempt at a Solution I'm unfamiliar with 3D coordinates at this time, but I like to know how can I plot it...
  25. FallenApple

    Getting flagged values in residual plot in R

    What does the 8 and the 50 mean? I know that they are flagged values. Often, this happens. The plot is off because of some extreme points, the plot flags them, and I go into the dataset and cannot find them. Are they the built in row numbers of the dataframe? or are they something else?
  26. J

    I Problem interpreting a Distance-Redshift Plot

    I was looking at the following graph showing the relationship between redshift and distance for a constant, accelerating and decelerating expansion of the universe. Source Looking at the accelerating expansion line (red), I tried to reason why it would show a line that deviates upwards from...
  27. S

    How to plot generalized hypergeometric function in ROOT?

    Hello everyone I am trying to write code in ROOT.I want to plot generalized hypergeometric function pFq with p=0 and q=3 i.e I want to plot 0F3(;4/3,5/3,2;x) as a function of x using TF1 class.I am not getting how to plot this function in ROOT.Kindly help me out. Thanks in Advance
  28. Physics Dad

    Calculating Spring Constant From Plot of T^2 versus r^2

    Homework Statement Hi, I recently performed a lab experiment for calculating the moment of inertia and spring constant of a couple of equal masses on a steel rod. I had to do this experiment at the exact same time as performing another experiment so I was unable to perform any calculations in...
  29. S

    Polar plot for the event horizon of a Kerr BH

    I have made graph of event horizon of Kerr black hole by giving simple command of polar plot. The problem is that the point where the event horizon and static limit meets should be along y-axis but instead its on x-axis. I have tried everything but not getting it right. What mistake I am...
  30. A

    A Plot a curve through some arbitrary points

    Hi how can i plot a curve (red curve at this example) like this:
  31. Conclaude

    Numerical Plot of Particle Orbits in Kerr Equatorial Plane

    Context: In James Hartle's Gravity, pp. 318-319, Example 15.1, he considers the case of a particle that starts falling from infinity into a Kerr black hole, initially with no kinetic energy (e = 1) and initially moving radially (ℓ = 0). The particle's motion is constrained along the equatorial...
  32. H

    Error: no plot because it would be empty, using mcnpx

    Hello everyone! I would like to ask you if anyone can help me solving my Problem with mcnpx. I created a file with a watertank, a nozzle and a slit blend on the surface. I also inserted a protonbeam and would like to plot the dose and fluence for examplte with Moritz. But when I execute the...
  33. S

    A Using Fastjet in Pythia to plot distribution of particles

    I am using fastjet in pythia8.I am studying jet formation in pp collisions.I need to plot distribution of transverse momentum of fastest particle in fastest jet formed in 1000 events simulated.But i don't know how to access particle properties after jet formation.Like if I want to know the...
  34. P

    Finding r(ϕ) from r(t) and ϕ(t) to plot Newtonian orbits

    Homework Statement I'm trying to plot Newtonian orbits in Mathematica with the goal of extending this to orbits including GR after. I've derived equations for r(t) and ##\phi##(t) (see below) by integrating ##\dot{r}## and ## \dot{\phi} ## (see below also) from E = 1/2mv2 +V(r) with velocity...
  35. BiGyElLoWhAt

    I Why Plot Spin vs Mass^2 in Particle Physics?

    Maybe this is more quantum, but I'm not sure. I was watching Susskinds first String lecture on youtube, and he was talking about how, within each particle family, you get a straight line called a regge trajectory if you plot spin vs. mass^2. He also mentioned that there was some slight insight...
  36. R

    Mathematica How to plot several terms in a Fourier series

    I was given a function that is periodic about 2π and I need to plot it. I was wondering if there is a way to input a value and have mathematica generate a new graph with the number of iterations. The function is: $$\sum_{n=1}^{N}\frac{sin(nx)}{n}$$ where n is an odd integer. I guess a better...
  37. Navier-Stokes

    A Can someone explain this plot of the Orr Sommerfeld equation?

    This is a plot for understanding the stability of flows through the orr sommerfeld equation. However, I find it really hard to understand. The plot by itself is a little weird, what is it trying to convey?
  38. N

    MATLAB Learn How to Plot Figures in MATLAB: Step-by-Step Guide and Helpful Tips

    Dear group, I am new with MATLAB and trying to plot these figure out as the file request. I tried but could not get the same plot as the file has. I hope anyone can help. Here is the code which i am working on. Thank you. fc = 553e6; w = 0:2*pi*fc*1e-2:100*2*pi*fc; pau = 0.33; tau =...
  39. binbagsss

    Plot Heat Capacity vs Temperature for a 2 state system microcananonical ensemble

    Homework Statement I have ##C= NK_B (\frac{\epsilon}{K_B T})^{2}e^{\frac{\epsilon}{K_B T}}\frac{1}{(e^{\frac{\epsilon}{K_BT}}+1)^2} ## and need to sketch ##C## vs. ##T## Homework Equations See above The Attempt at a Solution I have ##C= NK_B (\frac{\epsilon}{K_B...
  40. kelvin490

    MATLAB How to make 2D plot of points with different colors?

    I want to make a 2D plot of points with different x, y coordinates and have colors depending on a separate variable. I have make column vectors for x and y coordinates and another column containing 1 or -1. I would like to represent the points with 1 as red and -1 as blue points. I have codes as...
  41. Captain1024

    Find Fourier transform and plot spectrum by hand & MATLAB

    Homework Statement Link: http://i.imgur.com/JSm3Tqt.png Homework Equations ##\omega=2\pi t## Fourier: ## Y(f)=\int ^{\infty}_{-\infty}y(t)\mathrm{exp}(-j\omega t)dt## Linearity Property: ##ay_1(t)+by_2(t)=aY_1(f)+bY_2(f)##, where a and b are constants Scaling Property...
  42. Stella.Physics

    Mathematica Graph Plotting Problem in Mathematica

    Hello to all. I've been trying to plot some graphs on Mathematica but I have faced some troubles so far. I am working on this paper by Lattimer on binary systems: https://arxiv.org/abs/astro-ph/0002203 I am trying to reproduce Figure 11 but something seems to go wrong. Here's what I have...
  43. M

    Lab: Plot graph of resistance, R (in Ohms) versus 1/d^2

    Homework Statement We were given five samples of nichrome wire, each with a different diameter but the same length. A micrometer was used to measure the diameters. We then measured and recorded the electrical resistance, R in Ohms of each nichrome sample with a DMM. I will try to summarize all...
  44. L

    I The wave function is an exponential function, if I plot the

    The wave function is an exponential function, if I plot the real part of it, I don't get a wave graph like sine or cosine function, Why the wave function is not represented by a trigonometric ratio instead. Also, the wave function cannot be plotted since it is imaginary, why is it imaginary? Thanks
  45. G

    I Accelerated expansion and Hubble plot

    Hello! I have a question regarding the effect of the accelerated expansion of the universe on the Hubble plot (redshift over luminosity (or distance). I understand that for relatively nearby galaxies, this appears to be a linear relationship but that because of the accelerated expansion of the...
  46. P

    Need help with short comic plot ideas for a gamer's birthday?

    Hi guys, my friend’s birthday is coming up and, as a gift, I want to make him a comic with a clever and/or funny punch line. It’d be nice if it were somewhat related to his interests and hobbies which include gaming, 3-D printing, and he also messes with his raspberry pi a lot. Now, the problem...
  47. V

    How to Draw Nyquist Plot for 1/s(s^2+2)?

    1\s(s^2+2) please give detailed explanation.
  48. Safinaz

    How to make a plot on an experimental figure

    Hi all, What is the tool which can add my Listplot graph like: to an experimental figure as following: such that the (x-y) axes coincidence in both figure and graph: Actually I tried Mathematica as: data27 = Import["~/Events/scan.dat"]; idata27 = Table[{data27[[i, 2]], data27[[i...
  49. M

    Name For (Limit) Points In An Electric Field Plot ....

    Homework Statement I'm looking at an electric field plot around four (4) + and - point charges in free space. There are several points where the electric fields come together and make right-angled turns (in the limit). Is there a name for these points? Especially is there a traditional name for...
  50. S

    How to Interpret Multiple Peaks in a Bode Plot?

    I think that first peak of the graph represent a resonance frequeny but i don`t know some peaks which are located after first peak. Is it a just noise? or some other?
Back
Top