Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

318
Views
Plotly JS ¿Cómo puedo dibujar un gráfico lineal que no tenga principio antes del punto de inicio ni fin después del último punto?

Por ejemplo, he escrito este código a continuación para generar el siguiente gráfico:

 const trace = { x: [-51.0, -50.0, 0.0, 0.6, 0.7, 0.75], y: [-100.0, -0.0001, 0.0, 0.0051, 0.0155, 100.0], // x: [-50.0, 0.0, 0.6, 0.7, 0.75], // y: [-0.0001, 0.0, 0.0051, 0.0155, 100.0], type: "scatter", mode: "lines+markers", name: "diode-curve-graph", fill: "tonexty", }; const layout = { margin: { l: 20, r: 10, b: 25, t: 5, pad: 0 }, font: { size: 11, family: "IBM Plex Sans, sans-serif", color: "#161b1d" }, modebar: { activecolor: "#161b1d" }, xaxis: { autorange: true, rangemode: "auto", zeroline: true, ticks: 'outside', }, yaxis: { autorange: true, rangemode: "tozero", zeroline: true, tickformatstops: [ { enabled: true, dtickrange: [null, 0.01], value: ".e" }, { enabled: true, dtickrange: [0.01, 100], value: ".f" }, { enabled: true, dtickrange: [100, null], value: ".e" }, ], // ticks: 'outside', } }; const config = { responsive: true, displaylogo: false, locale: "pt-BR", displayModeBar: false, scrollZoom: true } Plotly.newPlot("diode-curve-graph", [trace], layout, config);

ingrese la descripción de la imagen aquí

Pero estoy tratando de pasar la información de que la línea es infinita, sin principio ni fin, como representa esta línea roja:

ingrese la descripción de la imagen aquí

Podría ser una flecha simple en el primer punto y el último punto que apunta a la dirección en la que continúan las líneas, pero no pude hacerlo también.

¡Gracias por adelantado!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!