// File: orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot& Gnuplot::plot_xy_err<std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>>(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Gnuplot& Gnuplot::plot_xy_err(const X &x,
                              const Y &y,
                              const E &dy,
                              const std::string &title)
{
    if (x.empty() || y.empty() || dy.empty())
    {
        throw GnuplotException("std::vectors too small");
    }

    if (x.size() != y.size() || y.size() != dy.size())
    {
        throw GnuplotException("Length of the std::vectors differs");
    }
    std::ofstream tmp;
    const std::string name = create_tmpfile(tmp);
    if (name.empty())
    {
        throw GnuplotException("Unable to create tmp-file.");
    }
    // write the data to file
    for (std::size_t i = 0; i < x.size(); ++i)
    {
        tmp << x[i] << " " << y[i] << " " << dy[i] << std::endl;
    }
    // Cleanup
    tmp.flush();
    tmp.close();
    // Do the actual plot
    plotfile_xy_err(name, 1, 2, 3, title);

    return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x360, %rsp            # imm = 0x360
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xd216
movq -0x18(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xd216
movq -0x20(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xd216
jmp 0xd2ce
movb $0x1, -0x5d(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x2f0(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x3510
movq -0x2e8(%rbp), %rdx
leaq 0x375d(%rip), %rsi      # 0x109a6
leaq -0x48(%rbp), %rdi
callq 0xbb50
jmp 0xd254
movq -0x2f0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xbcd0
jmp 0xd266
movq -0x2f0(%rbp), %rdi
movb $0x0, -0x5d(%rbp)
leaq 0x8ad0(%rip), %rsi      # 0x15d48
leaq -0x156f(%rip), %rdx     # 0xbd10
callq 0x34d0
jmp 0xd6c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd2ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x35c8
leaq -0x49(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x5d(%rbp)
jne 0xd2bd
jmp 0xd2c9
movq -0x2f0(%rbp), %rdi
callq 0x3210
jmp 0xd6b7
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, -0x2f8(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x2f8(%rbp), %rax
cmpq %rcx, %rax
jne 0xd322
movq -0x18(%rbp), %rdi
callq 0xe5e0
movq %rax, -0x300(%rbp)
movq -0x20(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x300(%rbp), %rax
cmpq %rcx, %rax
je 0xd3e9
movb $0x1, -0x82(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x310(%rbp)
leaq -0x81(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x3510
movq -0x308(%rbp), %rdx
leaq 0x3662(%rip), %rsi      # 0x109bd
leaq -0x80(%rbp), %rdi
callq 0xbb50
jmp 0xd366
movq -0x310(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xbcd0
jmp 0xd378
movq -0x310(%rbp), %rdi
movb $0x0, -0x82(%rbp)
leaq 0x89bb(%rip), %rsi      # 0x15d48
leaq -0x1684(%rip), %rdx     # 0xbd10
callq 0x34d0
jmp 0xd6c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd3c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x35c8
leaq -0x81(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x82(%rbp)
jne 0xd3d8
jmp 0xd3e4
movq -0x310(%rbp), %rdi
callq 0x3210
jmp 0xd6b7
leaq -0x288(%rbp), %rdi
movq %rdi, -0x318(%rbp)
callq 0x34c0
movq -0x2e0(%rbp), %rsi
movq -0x318(%rbp), %rdx
leaq -0x2a8(%rbp), %rdi
callq 0x6b90
jmp 0xd418
leaq -0x2a8(%rbp), %rdi
callq 0x3490
testb $0x1, %al
jne 0xd42d
jmp 0xd50e
movb $0x1, -0x2ca(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x328(%rbp)
leaq -0x2c9(%rbp), %rdi
movq %rdi, -0x320(%rbp)
callq 0x3510
movq -0x320(%rbp), %rdx
leaq 0x357a(%rip), %rsi      # 0x109e0
leaq -0x2c8(%rbp), %rdi
callq 0xbb50
jmp 0xd474
movq -0x328(%rbp), %rdi
leaq -0x2c8(%rbp), %rsi
callq 0xbcd0
jmp 0xd489
movq -0x328(%rbp), %rdi
movb $0x0, -0x2ca(%rbp)
leaq 0x88aa(%rip), %rsi      # 0x15d48
leaq -0x1795(%rip), %rdx     # 0xbd10
callq 0x34d0
jmp 0xd6c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd6ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd4e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x2c8(%rbp), %rdi
callq 0x35c8
leaq -0x2c9(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x2ca(%rbp)
jne 0xd4fd
jmp 0xd509
movq -0x328(%rbp), %rdi
callq 0x3210
jmp 0xd69f
movq $0x0, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x330(%rbp), %rax
cmpq %rcx, %rax
jae 0xd632
movq -0x10(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0xe600
movsd (%rax), %xmm0
leaq -0x288(%rbp), %rdi
callq 0x3560
movq %rax, -0x338(%rbp)
jmp 0xd56c
movq -0x338(%rbp), %rdi
leaq 0x2cef(%rip), %rsi      # 0x10269
callq 0x3280
movq %rax, -0x340(%rbp)
jmp 0xd588
movq -0x18(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0xe600
movq -0x340(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x3560
movq %rax, -0x348(%rbp)
jmp 0xd5b1
movq -0x348(%rbp), %rdi
leaq 0x2caa(%rip), %rsi      # 0x10269
callq 0x3280
movq %rax, -0x350(%rbp)
jmp 0xd5cd
movq -0x20(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0xe600
movq -0x350(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x3560
movq %rax, -0x358(%rbp)
jmp 0xd5f6
movq -0x358(%rbp), %rdi
movq 0x899c(%rip), %rsi      # 0x15fa0
callq 0x32d0
jmp 0xd60b
jmp 0xd60d
movq -0x2d8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2d8(%rbp)
jmp 0xd519
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd69f
leaq -0x288(%rbp), %rdi
callq 0x31d0
jmp 0xd640
leaq -0x288(%rbp), %rdi
callq 0x3410
jmp 0xd64e
movq -0x2e0(%rbp), %rdi
movq -0x28(%rbp), %r9
leaq -0x2a8(%rbp), %rsi
movl $0x1, %edx
movl $0x2, %ecx
movl $0x3, %r8d
callq 0x6220
jmp 0xd677
leaq -0x2a8(%rbp), %rdi
callq 0x35c8
leaq -0x288(%rbp), %rdi
callq 0x3430
movq -0x2e0(%rbp), %rax
addq $0x360, %rsp            # imm = 0x360
popq %rbp
retq
leaq -0x2a8(%rbp), %rdi
callq 0x35c8
leaq -0x288(%rbp), %rdi
callq 0x3430
movq -0x58(%rbp), %rdi
callq 0x3500