This phase II pilot trial studies how well ruxolitinib phosphate and danazol work in treating anemia in patients with myelofibrosis. Ruxolitinib phosphate and danazol may cause the body to make more red blood cells. They are used to treat anemia in patients with myelofibrosis.