Python Forum
how to get x values based on y-axis values from curvefit function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get x values based on y-axis values from curvefit function
#2
This problem can be solved in many ways, e.g. consider the following:

from scipy.optimize import root_scalar
root_scalar(lambda x: func(x, *popt) - your_y_value, bracket=[0, 10000], method='bisect')
Reply


Messages In This Thread
RE: how to get x values based on y-axis values from curvefit function - by scidam - Sep-19-2019, 02:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Heatmaps are not populating all values Stegosaurus 0 1,404 Jan-06-2025, 09:47 AM
Last Post: Stegosaurus
  attempt to split values from within a dataframe column mbrown009 9 6,409 Jun-20-2024, 07:59 PM
Last Post: AdamHensley
  Assigning conditional values in Pandas Scott 3 2,431 Dec-19-2023, 03:10 AM
Last Post: Larz60+
  Increase df column values decimals SriRajesh 2 2,025 Nov-14-2022, 05:20 PM
Last Post: deanhystad
  replace sets of values in an array without using loops paul18fr 7 3,808 Jun-20-2022, 08:15 PM
Last Post: paul18fr
  Changing Values in a List DaveG 1 1,837 Apr-04-2022, 03:38 PM
Last Post: jefsummers
Question How does one clean a populated table in MySQL/MariaDB? Copying values across tables? BrandonKastning 2 2,334 Jan-17-2022, 05:46 AM
Last Post: BrandonKastning
  Matplotlib scatter plot in loop with None values ivan_sc 1 3,475 Nov-04-2021, 11:25 PM
Last Post: jefsummers
  pandas: Compute the % of the unique values in a column JaneTan 1 2,530 Oct-25-2021, 07:55 PM
Last Post: jefsummers
  Write a dictionary with arrays as values into JSON format paul18fr 3 11,284 Oct-20-2021, 10:38 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020