question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lines and graphs are not shown!

See original GitHub issue

I am running the following codes and it seems manim has an issue with lines and graphs illustrations.

class CreateLine(Scene):
    def construct(self):
         start=(0,0,0)
         end=(4,0,0)
         line=Line(start, end)
         self.play(ShowCreation(line))
class PlotSin(Scene):
    def construct(self):
        axes = Axes((-3, 10), (-1, 8),
                 axis_config={
                     "stroke_color": GREY_A,
                     "stroke_width": 2,
                     "fill_opacity": 1,
                }
        )
        axes.add_coordinate_labels()

        self.play(Write(axes, lag_ratio=0.01, run_time=1))

        # Axes.get_graph will return the graph of a function
        sin_graph = axes.get_graph(
            lambda x: 2 * math.sin(x),
            color=BLUE,
        )

        sin_label = axes.get_graph_label(sin_graph, "\\sin(x)")
        

        self.play(
            ShowCreation(sin_graph),
            FadeIn(sin_label, RIGHT),
        )

I should mention that I have OpenGL V4.6 installed on my laptop and my graphic renderer is Intel® UHD.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
niedongcommented, Jun 26, 2021

Hi, I’ve solved this problem. Please change your graphics processor. I changed my graphics processor and everything becomes fine. vendor: NVIDIA Corporation renderer: GeForce 940MX/PCIe/SSE2 version: 3.3.0 NVIDIA 461.40 python: 3.9.4 (tags/v3.9.4:1f2e308, Apr 6 2021, 13:40:21) [MSC v.1928 64 bit (AMD64)] platform: win32 code: 330

is this your new processor or old one??

This is my new one. I’ve written my solution here. Please check it out.

1reaction
Darylgoldencommented, Apr 21, 2021

I’m having the same issue. But i realize that the problem only happen in Windows. Running on Anaconda or Windows directly. In linux there is no problem.

Can you try python -m moderngl in both cases? Can you try installing mesa to see if it makes it work on Windows?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Line not visible on chart | MrExcel Message Board
First change the axis on the right to start at 0, and see if you can then see the line. If so, it's...
Read more >
How to correct a Line chart with no line on the chart in Excel
Many a times you find that there are no lines in your line chart in the Excel, it is very weird and difficult...
Read more >
Excel Line graph not displaying all data - Microsoft Community
I have a line graph with the following Data selected: Apr-16 87.50 95.24 93.33 100.00 May-16 ... Excel Line graph not displaying all...
Read more >
line graph not showing all data - Statalist
I have created a series of line graphs that are by(state). ... and year but Connecticut is showing no lines and has data...
Read more >
lines not showing up on line graph in R when using plot() then ...
In your plot statement you have a x and y component (re_date, date_sub$Sub_metering_1). When you call lines you only provide y. R does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found