Skip to content

Commit

Permalink
adjust line plot graph
Browse files Browse the repository at this point in the history
  • Loading branch information
LTDakin committed Nov 19, 2024
1 parent 3c5d8a4 commit ce0118c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Project/ImageAnalysis/LinePlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const svg = ref(null)
const props = defineProps(['yAxisLuminosity', 'xAxisArcsecs', 'startCoords', 'endCoords', 'positionAngle'])
// Setting dimensions and margins for the plot
const margin = { top: 20, right: 20, bottom: 70, left: 80 },
svgWidth = 700,
svgHeight = 480,
const margin = { top: 0, right: 40, bottom: 50, left: 60 },
svgWidth = 500,
svgHeight = 350,
width = svgWidth - margin.left - margin.right,
height = svgHeight - margin.top - margin.bottom
Expand All @@ -29,7 +29,7 @@ const line = d3.line()
const updateAxes = () => {
const maxX = props.xAxisArcsecs
// Add 5% to the largest number from the randomNumbers array to buffer the plot
// Add 5% to the largest number to buffer the plot
const maxY = d3.max(props.yAxisLuminosity) * 1.05
x.domain([0, maxX])
Expand Down

0 comments on commit ce0118c

Please sign in to comment.