@@ -291,42 +291,56 @@ class TransferFunc extends Component {
291291 { `\\( New \\ PO_{Texas} = \\frac{${ A } }{1 + ${ B } \\cdot (FC)^{${ C } }} \\)` }
292292 </ MathJax >
293293 </ Typography >
294- </ Grid >
295-
294+ </ Grid >
295+
296296 { /* Plot Section */ }
297- < Grid item xs = { 12 } sm = { 8 } >
298- < Grid container spacing = { 4 } style = { { marginTop : '40px' } } >
299- </ Grid >
300- < Plot
301- data = { [
302- { x : FCValues , y : RedPOValues , type : 'scatter' , mode : 'lines' , name : '0-6274' , line : { color : '#e53935' } } ,
303- { x : FCValues , y : BlackPOValues , type : 'scatter' , mode : 'lines' , name : 'Current PO' , line : { color : 'black' } } ,
304- { x : FCValues , y : POValues , type : 'scatter' , mode : 'lines' , name : 'New PO' , line : { color : '#1976d2' } } ,
305- ] }
306- layout = { {
307- autosize : true ,
308- width : 1250 ,
309- height : 550 ,
310- title : 'Transfer Function for TxCRCP-ME' ,
311- titlefont : { size : 26 , family : 'Arial, sans-serif' , color : '#333' } ,
312- xaxis : {
313- type : 'log' ,
314- tickmode : 'array' ,
315- tickvals : [ 1e-3 , 1e-2 , 1e-1 , 1e0 , 1e1 , 1e2 , 1e3 ] ,
316- ticktext : [ '1e-3' , '1e-2' , '1e-1' , '1e0' , '1e1' , '1e2' , '1e3' ] ,
317- title : 'Cumulative Damage (FC)' ,
318- titlefont : { size : 18 , color : '#333' } ,
319- } ,
320- yaxis : {
321- title : 'Punchout per Lane Mile (PO)' ,
322- titlefont : { size : 18 , color : '#333' } ,
323- } ,
324- legend : {
325- font : { size : 18 , color : '#333' } ,
326- } ,
327- showlegend : true ,
328- } }
329- />
297+ < Grid item xs = { 12 } sm = { 8 }
298+ style = { {
299+ display : 'flex' ,
300+ justifyContent : 'center' ,
301+ alignItems : 'center' ,
302+ width : '100%' ,
303+ height : 'auto' ,
304+ } }
305+ >
306+ < div style = { {
307+ display : 'flex' ,
308+ justifyContent : 'center' ,
309+ alignItems : 'center' ,
310+ width : '100%' ,
311+ height : 'auto' , resize : 'both' , overflow : 'auto'
312+ } } >
313+ < Plot
314+ data = { [
315+ { x : FCValues , y : RedPOValues , type : 'scatter' , mode : 'lines' , name : '0-6274' , line : { color : '#e53935' } } ,
316+ { x : FCValues , y : BlackPOValues , type : 'scatter' , mode : 'lines' , name : 'Current PO' , line : { color : 'black' } } ,
317+ { x : FCValues , y : POValues , type : 'scatter' , mode : 'lines' , name : 'New PO' , line : { color : '#1976d2' } } ,
318+ ] }
319+ layout = { {
320+ autosize : true ,
321+ // width: 1250,
322+ // height: 550,
323+ title : 'Transfer Function for TxCRCP-ME' ,
324+ titlefont : { size : 26 , family : 'Arial, sans-serif' , color : '#333' } ,
325+ xaxis : {
326+ type : 'log' ,
327+ tickmode : 'array' ,
328+ tickvals : [ 1e-3 , 1e-2 , 1e-1 , 1e0 , 1e1 , 1e2 , 1e3 ] ,
329+ ticktext : [ '1e-3' , '1e-2' , '1e-1' , '1e0' , '1e1' , '1e2' , '1e3' ] ,
330+ title : 'Cumulative Damage (FC)' ,
331+ titlefont : { size : 18 , color : '#333' } ,
332+ } ,
333+ yaxis : {
334+ title : 'Punchout per Lane Mile (PO)' ,
335+ titlefont : { size : 18 , color : '#333' } ,
336+ } ,
337+ legend : {
338+ font : { size : 18 , color : '#333' } ,
339+ } ,
340+ showlegend : true ,
341+ } }
342+ />
343+ </ div >
330344 </ Grid >
331345 { /* Form Section */ }
332346 < Grid item xs = { 12 } sm = { 4 } >
0 commit comments